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>
 
     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}'