Add docker login to java-merge job 05/95505/1
authorCristina Pauna <cristina.pauna@enea.com>
Wed, 11 Sep 2019 14:45:06 +0000 (17:45 +0300)
committerCristina Pauna <cristina.pauna@enea.com>
Wed, 11 Sep 2019 14:50:16 +0000 (17:50 +0300)
Add a conditional step for docker login to java-merge job. The condition
is to do the login only if the project name has its architecture in it,
which happens only when the job is called from a mult-arch job.

Issue-ID: CIMAN-217
Change-Id: Ibe03f0899f1dbf1c428ed77befbcbc07557c7e50
Signed-off-by: Cristina Pauna <cristina.pauna@enea.com>
jjb/global-templates-java.yaml

index 84d9cd0..1e16acd 100644 (file)
 
     builders:
       - lf-infra-pre-build
+      - conditional-step:
+          condition-kind: regex-match
+          regex: .*(amd64|arm64).*
+          label: '{project-name}'
+          steps:
+            - shell: !include-raw-escape: global-jjb/shell/docker-login.sh
       - provide-maven-settings:
           global-settings-file: 'global-settings'
           settings-file: '{mvn-settings}'