Commit 224ef792 authored by Robert Schmidt's avatar Robert Schmidt

Merge remote-tracking branch 'origin/ci-OC-image-tagging' into integration_2023_w16b

parents 4fdbcb04 64b4fbe7
...@@ -263,7 +263,6 @@ class Cluster: ...@@ -263,7 +263,6 @@ class Cluster:
baseTag = 'develop' baseTag = 'develop'
forceBaseImageBuild = False forceBaseImageBuild = False
imageTag = 'develop'
if self.ranAllowMerge: # merging MR branch into develop -> temporary image if self.ranAllowMerge: # merging MR branch into develop -> temporary image
imageTag = f'{self.ranBranch}-{self.ranCommitID[0:8]}' imageTag = f'{self.ranBranch}-{self.ranCommitID[0:8]}'
if self.ranTargetBranch == 'develop': if self.ranTargetBranch == 'develop':
...@@ -273,6 +272,7 @@ class Cluster: ...@@ -273,6 +272,7 @@ class Cluster:
forceBaseImageBuild = True forceBaseImageBuild = True
baseTag = 'ci-temp' baseTag = 'ci-temp'
else: else:
imageTag = f'develop-{self.ranCommitID[0:8]}'
forceBaseImageBuild = True forceBaseImageBuild = True
# logging to OC Cluster and then switch to corresponding project # logging to OC Cluster and then switch to corresponding project
......
...@@ -114,7 +114,7 @@ class PhySim: ...@@ -114,7 +114,7 @@ class PhySim:
logging.debug('Merging with the target branch: ' + self.ranTargetBranch) logging.debug('Merging with the target branch: ' + self.ranTargetBranch)
mySSH.command('git merge --ff origin/' + self.ranTargetBranch + ' -m "Temporary merge for CI"', '\$', 30) mySSH.command('git merge --ff origin/' + self.ranTargetBranch + ' -m "Temporary merge for CI"', '\$', 30)
else: else:
imageTag = "develop" imageTag = f'develop-{self.ranCommitID[0:8]}'
# logging to OC Cluster and then switch to corresponding project # logging to OC Cluster and then switch to corresponding project
mySSH.command(f'oc login -u {ocUserName} -p {ocPassword} --server https://api.oai.cs.eurecom.fr:6443', '\$', 30) mySSH.command(f'oc login -u {ocUserName} -p {ocPassword} --server https://api.oai.cs.eurecom.fr:6443', '\$', 30)
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment