File tree Expand file tree Collapse file tree 2 files changed +12
-0
lines changed
Expand file tree Collapse file tree 2 files changed +12
-0
lines changed Original file line number Diff line number Diff line change @@ -21,6 +21,9 @@ anchors:
2121 ARTIFACTORY_SERVER : ((artifactory-server))
2222 ARTIFACTORY_USERNAME : ((artifactory-username))
2323 ARTIFACTORY_PASSWORD : ((artifactory-password))
24+ docker-hub-task-params : &docker-hub-task-params
25+ DOCKER_HUB_USERNAME : ((docker-hub-username))
26+ DOCKER_HUB_PASSWORD : ((docker-hub-password))
2427resource_types :
2528- name : artifactory-resource
2629 type : registry-image
@@ -114,6 +117,7 @@ jobs:
114117 timeout : ((task-timeout))
115118 file : git-repo/ci/tasks/build-project.yml
116119 params :
120+ << : *docker-hub-task-params
117121 BRANCH : ((branch))
118122 - put : artifactory-repo
119123 params :
@@ -158,6 +162,7 @@ jobs:
158162 image : ci-image
159163 file : git-repo/ci/tasks/stage.yml
160164 params :
165+ << : *docker-hub-task-params
161166 RELEASE_TYPE : M
162167 - put : artifactory-repo
163168 params :
@@ -176,6 +181,7 @@ jobs:
176181 image : ci-image
177182 file : git-repo/ci/tasks/stage.yml
178183 params :
184+ << : *docker-hub-task-params
179185 RELEASE_TYPE : RC
180186 - put : artifactory-repo
181187 params :
@@ -194,6 +200,7 @@ jobs:
194200 image : ci-image
195201 file : git-repo/ci/tasks/stage.yml
196202 params :
203+ << : *docker-hub-task-params
197204 RELEASE_TYPE : RELEASE
198205 - put : artifactory-repo
199206 params :
Original file line number Diff line number Diff line change 11source /opt/concourse-java.sh
22
33setup_symlinks
4+
5+ if [[ -n $DOCKER_HUB_USERNAME ]]; then
6+ docker login -u $DOCKER_HUB_USERNAME -p $DOCKER_HUB_PASSWORD
7+ fi
8+
49cleanup_maven_repo " io.spring.javaformat"
You can’t perform that action at this time.
0 commit comments