Skip to content

Commit 2b8f2d3

Browse files
committed
Update to latest pipeline definitions
1 parent 014189f commit 2b8f2d3

18 files changed

+262
-272
lines changed

ci/config-concourse.yml

Lines changed: 4 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,7 @@
1+
artifactory-server: https://repo.spring.io
2+
build-name: spring-cloud-app-broker
13
ab-slack-success-channel: "#sc-app-broker"
24
ab-slack-failure-channel: "#sc-app-broker"
35

4-
bintray-distribution-repo: spring-cloud-app-broker
5-
bintray-package: spring-cloud-app-broker
6-
bintray-repo: jars
7-
bintray-subject: spring
8-
build-name: spring-cloud-app-broker
6+
7+

ci/config/release-scripts.yml

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,10 @@
1+
logging:
2+
level:
3+
io.spring.concourse: DEBUG
4+
spring:
5+
main:
6+
banner-mode: off
7+
sonatype:
8+
exclude:
9+
- 'build-info\.json'
10+
- '.*\.zip'

ci/images/app-broker-ci/Dockerfile

Lines changed: 26 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,26 @@
1+
FROM harbor-repo.vmware.com/dockerhub-proxy-cache/library/ubuntu:bionic
2+
3+
RUN apt-get update && apt-get install --no-install-recommends -y ca-certificates net-tools git curl jq gnupg
4+
5+
RUN curl -L https://packages.cloudfoundry.org/debian/cli.cloudfoundry.org.key | apt-key add -
6+
RUN echo "deb https://packages.cloudfoundry.org/debian stable main" | tee /etc/apt/sources.list.d/cloudfoundry-cli.list
7+
RUN apt-get update && apt-get install cf-cli
8+
9+
RUN rm -rf /var/lib/apt/lists/*
10+
11+
ENV JAVA_HOME /opt/openjdk
12+
ENV PATH $JAVA_HOME/bin:$PATH
13+
RUN mkdir -p /opt/openjdk && \
14+
cd /opt/openjdk && \
15+
curl -L https://github.com/AdoptOpenJDK/openjdk8-binaries/releases/download/jdk8u292-b10/OpenJDK8U-jdk_x64_linux_hotspot_8u292b10.tar.gz | tar xz --strip-components=1
16+
17+
ADD https://raw.githubusercontent.com/spring-io/concourse-java-scripts/v0.0.4/concourse-java.sh /opt/
18+
ADD https://repo.spring.io/libs-release/io/spring/concourse/releasescripts/concourse-release-scripts/0.3.3/concourse-release-scripts-0.3.3.jar /opt/
19+
20+
RUN cd /usr/local/bin && curl -L https://github.com/cloudfoundry-incubator/credhub-cli/releases/download/2.9.0/credhub-linux-2.9.0.tgz | tar xz
21+
22+
RUN curl -L https://github.com/cloudfoundry/bosh-bootloader/releases/download/v8.4.43/bbl-v8.4.43_linux_x86-64 --output /usr/local/bin/bbl && \
23+
chmod +x /usr/local/bin/bbl
24+
25+
RUN curl -L https://github.com/cloudfoundry/bosh-cli/releases/download/v6.4.4/bosh-cli-6.4.4-linux-amd64 --output /usr/local/bin/bosh && \
26+
chmod +x /usr/local/bin/bosh

ci/images/release-ci-image/Dockerfile

Lines changed: 0 additions & 13 deletions
This file was deleted.

ci/pipeline.yml

Lines changed: 70 additions & 74 deletions
Original file line numberDiff line numberDiff line change
@@ -6,23 +6,25 @@ aliases:
66
icon_emoji: ":concourse:"
77
username: concourse
88
channel: ((ab-slack-success-channel))
9-
text: "$BUILD_PIPELINE_NAME pipeline has succeeded with build <https://scs.ci.springapps.io/builds/$BUILD_ID|$BUILD_NAME>!"
9+
text: "$BUILD_PIPELINE_NAME pipeline has succeeded with build <${ATC_EXTERNAL_URL}/builds/$BUILD_ID|$BUILD_NAME>!"
1010
- &slack-failure-notification
1111
put: alert
1212
params:
1313
icon_emoji: ":animal-1252:"
1414
username: concourse
1515
channel: ((ab-slack-failure-channel))
16-
text: <!here> Build <https://scs.ci.springapps.io/builds/$BUILD_ID|$BUILD_NAME> of job $BUILD_JOB_NAME in the $BUILD_PIPELINE_NAME pipeline has failed!
16+
text: <!here> Build <${ATC_EXTERNAL_URL}/builds/$BUILD_ID|$BUILD_NAME> of job $BUILD_JOB_NAME in the $BUILD_PIPELINE_NAME pipeline has failed!
1717

1818
jobs:
19-
- name: build-release-ci-images
19+
- name: build-ci-images
2020
plan:
2121
- get: ci-images-git-repo
2222
trigger: true
23-
- put: release-ci-image
23+
- put: app-broker-ci-image
2424
params:
25-
build: ci-images-git-repo/ci/images/release-ci-image
25+
build: ci-images-git-repo/ci/images/app-broker-ci
26+
get_params:
27+
skip_download: "true"
2628

2729
- name: build
2830
serial: true
@@ -34,46 +36,53 @@ jobs:
3436
timeout: 1h30m
3537
file: git-repo/ci/tasks/build-project.yml
3638
vars:
37-
docker-hub-organization: ((docker-hub-organization))
38-
release-image-tag: ((release-image-tag))
39+
ci-image-tag: ((ci-image-tag))
3940
- put: artifactory-repo
4041
params: &artifactory-params
4142
repo: libs-snapshot-local
4243
folder: distribution-repository
43-
build_uri: "https://ci.spring.io/teams/${BUILD_TEAM_NAME}/pipelines/${BUILD_PIPELINE_NAME}/jobs/${BUILD_JOB_NAME}/builds/${BUILD_NAME}"
44+
build_uri: "${ATC_EXTERNAL_URL}/teams/${BUILD_TEAM_NAME}/pipelines/${BUILD_PIPELINE_NAME}/jobs/${BUILD_JOB_NAME}/builds/${BUILD_NAME}"
4445
build_number: "${BUILD_PIPELINE_NAME}-${BUILD_JOB_NAME}-${BUILD_NAME}"
4546
disable_checksum_uploads: true
46-
artifact_set:
47-
- include:
48-
- "/**/spring-cloud-app-broker-docs-*.zip"
49-
properties:
50-
"zip.type": "docs"
51-
"zip.deployed": "false"
47+
on_failure:
48+
*slack-failure-notification
5249

5350
- name: run-acceptance-tests
5451
serial: true
5552
plan:
56-
- get: git-repo
57-
passed: [build]
58-
trigger: true
53+
- in_parallel:
54+
- get: git-repo
55+
passed: [build]
56+
trigger: true
57+
- put: toolsmith-env
58+
inputs: []
59+
params:
60+
action: claim
5961
- task: acceptance-tests
6062
file: git-repo/ci/tasks/acceptance-tests.yml
63+
vars:
64+
ci-image-tag: ((ci-image-tag))
6165
on_success:
62-
*slack-success-notification
66+
in_parallel:
67+
- *slack-success-notification
68+
- put: toolsmith-env
69+
params:
70+
action: unclaim
71+
env_file: toolsmith-env/metadata
72+
inputs: [toolsmith-env]
6373
on_failure:
6474
*slack-failure-notification
6575

6676
- name: stage-milestone
6777
serial: true
6878
plan:
6979
- get: git-repo
70-
trigger: false
7180
passed: [run-acceptance-tests]
7281
- task: stage
7382
file: git-repo/ci/tasks/stage.yml
7483
vars:
7584
release-type: M
76-
release-image-tag: ((release-image-tag))
85+
ci-image-tag: ((ci-image-tag))
7786
- put: artifactory-repo
7887
params:
7988
<<: *artifactory-params
@@ -86,13 +95,12 @@ jobs:
8695
serial: true
8796
plan:
8897
- get: git-repo
89-
trigger: false
9098
passed: [run-acceptance-tests]
9199
- task: stage
92100
file: git-repo/ci/tasks/stage.yml
93101
vars:
94102
release-type: RC
95-
release-image-tag: ((release-image-tag))
103+
ci-image-tag: ((ci-image-tag))
96104
- put: artifactory-repo
97105
params:
98106
<<: *artifactory-params
@@ -105,13 +113,12 @@ jobs:
105113
serial: true
106114
plan:
107115
- get: git-repo
108-
trigger: false
109116
passed: [run-acceptance-tests]
110117
- task: stage
111118
file: git-repo/ci/tasks/stage.yml
112119
vars:
113120
release-type: RELEASE
114-
release-image-tag: ((release-image-tag))
121+
ci-image-tag: ((ci-image-tag))
115122
- put: artifactory-repo
116123
params:
117124
<<: *artifactory-params
@@ -124,97 +131,78 @@ jobs:
124131
serial: true
125132
plan:
126133
- get: git-repo
127-
trigger: false
128134
- get: artifactory-repo
129-
trigger: false
130135
passed: [stage-milestone]
131136
params:
132137
save_build_info: true
133138
- task: promote
134139
file: git-repo/ci/tasks/promote.yml
135140
vars:
136141
release-type: M
137-
release-image-tag: ((release-image-tag))
142+
ci-image-tag: ((ci-image-tag))
138143

139144
- name: promote-rc
140145
serial: true
141146
plan:
142147
- in_parallel:
143148
- get: git-repo
144-
trigger: false
145149
- get: artifactory-repo
146-
trigger: false
147150
passed: [stage-rc]
148151
params:
149152
save_build_info: true
150153
- task: promote
151154
file: git-repo/ci/tasks/promote.yml
152155
vars:
153156
release-type: RC
154-
release-image-tag: ((release-image-tag))
157+
ci-image-tag: ((ci-image-tag))
155158

156159
- name: promote-release
157160
serial: true
158161
plan:
159162
- in_parallel:
160163
- get: git-repo
161-
trigger: false
162164
- get: artifactory-repo
163-
trigger: false
164165
passed: [stage-release]
165166
params:
166167
save_build_info: true
167168
- task: promote
168169
file: git-repo/ci/tasks/promote.yml
169170
vars:
170171
release-type: RELEASE
171-
release-image-tag: ((release-image-tag))
172-
173-
- name: distribute-release
174-
serial: true
175-
plan:
176-
- in_parallel:
177-
- get: git-repo
178-
trigger: false
179-
- get: artifactory-repo
180-
trigger: false
181-
passed: [promote-release]
182-
params:
183-
save_build_info: true
184-
- task: distribute
185-
file: git-repo/ci/tasks/distribute.yml
186-
vars:
187-
release-image-tag: ((release-image-tag))
172+
ci-image-tag: ((ci-image-tag))
188173

189174
- name: sync-to-maven-central
190175
serial: true
191176
plan:
192177
- in_parallel:
193178
- get: git-repo
194-
trigger: false
195179
- get: artifactory-repo
196-
trigger: false
197-
passed: [distribute-release]
180+
passed: [promote-release]
198181
params:
199182
save_build_info: true
200183
- task: sync-to-maven-central
201184
file: git-repo/ci/tasks/sync-to-maven-central.yml
202185
vars:
203-
release-image-tag: ((release-image-tag))
186+
ci-image-tag: ((ci-image-tag))
204187

205188
resource_types:
206189
- name: artifactory-resource
207-
type: docker-image
190+
type: registry-image
208191
source:
209-
repository: springio/artifactory-resource
210-
tag: 0.0.12
192+
repository: ((dockerhub-mirror-registry))/springio/artifactory-resource
193+
tag: 0.0.14
211194

212195
- name: slack-notification
213-
type: docker-image
196+
type: registry-image
214197
source:
215-
repository: cfcommunity/slack-notification-resource
198+
repository: ((dockerhub-mirror-registry))/cfcommunity/slack-notification-resource
216199
tag: latest
217200

201+
- name: pcf-pool
202+
type: registry-image
203+
source:
204+
repository: ((dockerhub-mirror-registry))/cftoolsmiths/toolsmiths-envs-resource
205+
218206
resources:
219207
- name: git-repo
220208
type: git
@@ -233,11 +221,6 @@ resources:
233221
username: ((github-username))
234222
password: ((github-password))
235223
branch: ((github-username))/staging
236-
git_config:
237-
- name: user.name
238-
value: ((git-username))
239-
- name: user.email
240-
value: ((git-email))
241224

242225
- name: ci-images-git-repo
243226
type: git
@@ -246,13 +229,13 @@ resources:
246229
branch: ((branch))
247230
paths: ["ci/images/*"]
248231

249-
- name: release-ci-image
232+
- name: app-broker-ci-image
250233
type: docker-image
251234
source:
252-
repository: ((docker-hub-organization))/release-ci-image
253-
username: ((docker-hub-username))
254-
password: ((docker-hub-password))
255-
tag: ((release-image-tag))
235+
repository: ((corporate-harbor-registry))/((dockerhub-organization))/app-broker-ci
236+
username: ((corporate-harbor-robot-account.username))
237+
password: ((corporate-harbor-robot-account.password))
238+
tag: ((ci-image-tag))
256239

257240
- name: artifactory-repo
258241
type: artifactory-resource
@@ -267,19 +250,32 @@ resources:
267250
source:
268251
url: ((scs-slack-webhook))
269252

253+
- name: toolsmith-env
254+
type: pcf-pool
255+
icon: pool
256+
source:
257+
api_token: ((toolsmith-api-token))
258+
hostname: environments.toolsmiths.cf-app.com
259+
pool_name: cf-deployment
260+
270261
groups:
271-
- name: "Main"
262+
- name: "build"
272263
jobs:
273264
- build
274265
- run-acceptance-tests
266+
- name: "milestone"
267+
jobs:
275268
- stage-milestone
276-
- stage-rc
277-
- stage-release
278269
- promote-milestone
270+
- name: "rc"
271+
jobs:
272+
- stage-rc
279273
- promote-rc
274+
- name: "release"
275+
jobs:
276+
- stage-release
280277
- promote-release
281-
- distribute-release
282278
- sync-to-maven-central
283-
- name: "CI Images"
279+
- name: "ci-images"
284280
jobs:
285-
- build-release-ci-images
281+
- build-ci-images

0 commit comments

Comments
 (0)