update/cgcs-patch/cgcs-patch/cgcs_patch_id
Shuicheng Lin 21b9c6aeb2 CentOS 8: update cgcs-patch to use python3
spec and scripts are updated to use python3
tar cmd parameters position are adjusted based on new tar rpm
requirement.

Test:
Pass cgcs-patch rpm package build.

Story: 2007065
Task: 38301

Change-Id: I53ee6340fb7b298e896da772b73e2c7fcecf74a0
Signed-off-by: Shuicheng Lin <shuicheng.lin@intel.com>
2020-02-06 14:47:30 +08:00
..
README.txt StarlingX open source release updates 2018-05-31 07:37:12 -07:00
patch_id_allocator.py CentOS 8: update cgcs-patch to use python3 2020-02-06 14:47:30 +08:00
patch_id_allocator_client.py CentOS 8: update cgcs-patch to use python3 2020-02-06 14:47:30 +08:00
patch_id_allocator_server.conf StarlingX open source release updates 2018-05-31 07:37:12 -07:00
patch_id_allocator_server.py CentOS 8: update cgcs-patch to use python3 2020-02-06 14:47:30 +08:00

README.txt

Intended to run on a single build server.  Currently yow-cgts2-lx

# On other build servers
   mkdir -p /localdisk/designer/jenkins/bin
   cp patch_id_allocator_client.py /localdisk/designer/jenkins/bin
   

# On the intended server: e.g. yow-cgts2-lx
   mkdir -p /localdisk/designer/jenkins/bin
   cp *py /localdisk/designer/jenkins/bin/
   mkdir -p /localdisk/designer/jenkins/patch_ids
   sudo cp patch_id_allocator_server.conf /etc/init
   sudo initctl reload-configuration
   sudo start script

# Change to a different server
   edit patch_id_allocator_client.py
   change the line ...
       server = 'yow-cgts2-lx.wrs.com'
   
# TODO: 
   Need to back up the /localdisk/designer/jenkins/patch_ids directory 

# Quick test
   Point your browser at this url:
       http://yow-cgts2-lx:8888/get_patch_id

   expected result is:
       CGCS_None_PATCH_0000

   on each reload of the page, the number increments:
       CGCS_None_PATCH_0001
       CGCS_None_PATCH_0002
       ....