|
| 1 | +--- |
| 2 | +aliases: |
| 3 | + - &slack-failure-notification |
| 4 | + put: alert |
| 5 | + params: |
| 6 | + icon_emoji: ":animal-1252:" |
| 7 | + username: concourse |
| 8 | + channel: ((scs-slack-failure-channel)) |
| 9 | + text: <!here> Build <${ATC_EXTERNAL_URL}/builds/$BUILD_ID|$BUILD_NAME> of job $BUILD_JOB_NAME in the $BUILD_PIPELINE_NAME pipeline has failed! |
| 10 | + |
| 11 | +jobs: |
| 12 | + - name: build-ci-images |
| 13 | + plan: |
| 14 | + - get: ci-images-git-repo |
| 15 | + trigger: true |
| 16 | + - put: java-cfenv-ci-image |
| 17 | + params: |
| 18 | + build: ci-images-git-repo/ci/images/java-cfenv-ci |
| 19 | + get_params: |
| 20 | + skip_download: "true" |
| 21 | + |
| 22 | + - name: build |
| 23 | + serial: true |
| 24 | + public: true |
| 25 | + plan: |
| 26 | + - get: git-repo |
| 27 | + trigger: true |
| 28 | + - task: build-project |
| 29 | + file: git-repo/ci/tasks/build-project.yml |
| 30 | + - put: artifactory-repo |
| 31 | + params: &artifactory-params |
| 32 | + signing_key: ((signing-key)) |
| 33 | + signing_passphrase: ((signing-passphrase)) |
| 34 | + repo: libs-snapshot-local |
| 35 | + folder: distribution-repository |
| 36 | + build_uri: "${ATC_EXTERNAL_URL}/teams/${BUILD_TEAM_NAME}/pipelines/${BUILD_PIPELINE_NAME}/jobs/${BUILD_JOB_NAME}/builds/${BUILD_NAME}" |
| 37 | + build_number: "${BUILD_PIPELINE_NAME}-${BUILD_JOB_NAME}-${BUILD_NAME}" |
| 38 | + disable_checksum_uploads: true |
| 39 | + on_failure: |
| 40 | + *slack-failure-notification |
| 41 | + |
| 42 | + - name: stage-milestone |
| 43 | + serial: true |
| 44 | + plan: |
| 45 | + - get: git-repo |
| 46 | + passed: [build] |
| 47 | + - task: stage |
| 48 | + file: git-repo/ci/tasks/stage.yml |
| 49 | + vars: |
| 50 | + release-type: M |
| 51 | + - put: artifactory-repo |
| 52 | + params: |
| 53 | + <<: *artifactory-params |
| 54 | + repo: libs-staging-local |
| 55 | + - put: git-repo-staging |
| 56 | + params: |
| 57 | + repository: stage-git-repo |
| 58 | + |
| 59 | + - name: stage-rc |
| 60 | + serial: true |
| 61 | + plan: |
| 62 | + - get: git-repo |
| 63 | + passed: [build] |
| 64 | + - task: stage |
| 65 | + file: git-repo/ci/tasks/stage.yml |
| 66 | + vars: |
| 67 | + release-type: RC |
| 68 | + - put: artifactory-repo |
| 69 | + params: |
| 70 | + <<: *artifactory-params |
| 71 | + repo: libs-staging-local |
| 72 | + - put: git-repo-staging |
| 73 | + params: |
| 74 | + repository: stage-git-repo |
| 75 | + |
| 76 | + - name: stage-release |
| 77 | + serial: true |
| 78 | + plan: |
| 79 | + - get: git-repo |
| 80 | + passed: [build] |
| 81 | + - task: stage |
| 82 | + file: git-repo/ci/tasks/stage.yml |
| 83 | + vars: |
| 84 | + release-type: RELEASE |
| 85 | + - put: artifactory-repo |
| 86 | + params: |
| 87 | + <<: *artifactory-params |
| 88 | + repo: libs-staging-local |
| 89 | + - put: git-repo-staging |
| 90 | + params: |
| 91 | + repository: stage-git-repo |
| 92 | + |
| 93 | + - name: promote-milestone |
| 94 | + serial: true |
| 95 | + plan: |
| 96 | + - get: git-repo |
| 97 | + - get: artifactory-repo |
| 98 | + passed: [stage-milestone] |
| 99 | + params: |
| 100 | + save_build_info: true |
| 101 | + - task: promote |
| 102 | + file: git-repo/ci/tasks/promote.yml |
| 103 | + vars: |
| 104 | + release-type: M |
| 105 | + |
| 106 | + - name: promote-rc |
| 107 | + serial: true |
| 108 | + plan: |
| 109 | + - in_parallel: |
| 110 | + - get: git-repo |
| 111 | + - get: artifactory-repo |
| 112 | + passed: [stage-rc] |
| 113 | + params: |
| 114 | + save_build_info: true |
| 115 | + - task: promote |
| 116 | + file: git-repo/ci/tasks/promote.yml |
| 117 | + vars: |
| 118 | + release-type: RC |
| 119 | + |
| 120 | + - name: promote-release |
| 121 | + serial: true |
| 122 | + plan: |
| 123 | + - in_parallel: |
| 124 | + - get: git-repo |
| 125 | + - get: artifactory-repo |
| 126 | + passed: [stage-release] |
| 127 | + params: |
| 128 | + save_build_info: true |
| 129 | + - task: promote |
| 130 | + file: git-repo/ci/tasks/promote.yml |
| 131 | + vars: |
| 132 | + release-type: RELEASE |
| 133 | + |
| 134 | + - name: sync-to-maven-central |
| 135 | + serial: true |
| 136 | + plan: |
| 137 | + - in_parallel: |
| 138 | + - get: git-repo |
| 139 | + - get: artifactory-repo |
| 140 | + passed: [promote-release] |
| 141 | + params: |
| 142 | + save_build_info: true |
| 143 | + - task: sync-to-maven-central |
| 144 | + file: git-repo/ci/tasks/sync-to-maven-central.yml |
| 145 | + |
| 146 | +resource_types: |
| 147 | + - name: artifactory-resource |
| 148 | + type: registry-image |
| 149 | + source: |
| 150 | + repository: ((dockerhub-mirror-registry))/springio/artifactory-resource |
| 151 | + tag: latest |
| 152 | + - name: slack-notification |
| 153 | + type: registry-image |
| 154 | + source: |
| 155 | + repository: ((dockerhub-mirror-registry))/cfcommunity/slack-notification-resource |
| 156 | + tag: latest |
| 157 | + |
| 158 | +resources: |
| 159 | + - name: git-repo |
| 160 | + type: git |
| 161 | + source: |
| 162 | + uri: ((github-repo)) |
| 163 | + username: ((github-username)) |
| 164 | + password: ((github-password)) |
| 165 | + branch: ((branch)) |
| 166 | + ignore_paths: ["ci/images/*"] |
| 167 | + fetch_tags: true |
| 168 | + |
| 169 | + - name: git-repo-staging |
| 170 | + type: git |
| 171 | + source: |
| 172 | + uri: ((github-repo)) |
| 173 | + username: ((github-username)) |
| 174 | + password: ((github-password)) |
| 175 | + branch: ((github-username))/staging |
| 176 | + |
| 177 | + - name: ci-images-git-repo |
| 178 | + type: git |
| 179 | + source: |
| 180 | + uri: ((github-repo)) |
| 181 | + branch: ((branch)) |
| 182 | + paths: ["ci/images/*"] |
| 183 | + |
| 184 | + - name: java-cfenv-ci-image |
| 185 | + type: docker-image |
| 186 | + source: |
| 187 | + repository: ((corporate-harbor-registry))/((docker-hub-organization))/java-cfenv-ci |
| 188 | + username: ((corporate-harbor-robot-account.username)) |
| 189 | + password: ((corporate-harbor-robot-account.password)) |
| 190 | + |
| 191 | + - name: artifactory-repo |
| 192 | + type: artifactory-resource |
| 193 | + source: |
| 194 | + uri: ((artifactory-server)) |
| 195 | + username: ((scs-artifactory-username)) |
| 196 | + password: ((scs-artifactory-password)) |
| 197 | + build_name: ((build-name)) |
| 198 | + |
| 199 | + - name: alert |
| 200 | + type: slack-notification |
| 201 | + source: |
| 202 | + url: ((scs-slack-webhook)) |
| 203 | + |
| 204 | +groups: |
| 205 | + - name: "build" |
| 206 | + jobs: |
| 207 | + - build |
| 208 | + - name: "milestone" |
| 209 | + jobs: |
| 210 | + - stage-milestone |
| 211 | + - promote-milestone |
| 212 | + - name: "rc" |
| 213 | + jobs: |
| 214 | + - stage-rc |
| 215 | + - promote-rc |
| 216 | + - name: "release" |
| 217 | + jobs: |
| 218 | + - stage-release |
| 219 | + - promote-release |
| 220 | + - sync-to-maven-central |
| 221 | + - name: "ci-images" |
| 222 | + jobs: |
| 223 | + - build-ci-images |
0 commit comments