Add config to docker login 99/95599/2
authorCristina Pauna <cristina.pauna@enea.com>
Thu, 12 Sep 2019 17:50:02 +0000 (20:50 +0300)
committerCristina Pauna <cristina.pauna@enea.com>
Fri, 13 Sep 2019 10:26:40 +0000 (13:26 +0300)
Currently the docker login conditional builder from java-merge job is
missing the settings file with the credentials [1]. Moved the builder
after the configuration files are set.

[1] https://jenkins.onap.org/job/policy-docker-amd64-master-merge-java/5/console

Issue-ID: CIMAN-217
Signed-off-by: Cristina Pauna <cristina.pauna@enea.com>
Change-Id: I3aa441e5baef6aad1c9e2ade051e5b0bfc0c0030

jjb/global-templates-java.yaml

index 1e16acd..bfc9c25 100644 (file)
 
     builders:
       - lf-infra-pre-build
+      - provide-maven-settings:
+          global-settings-file: 'global-settings'
+          settings-file: '{mvn-settings}'
       - 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}'
       - maven-target:
           maven-version: '{maven-version}'
           pom: '{obj:pom}'