Created
March 7, 2019 23:13
-
-
Save hairyhum/de11c18b44a3765c717f6045ed8fd4b0 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
## Jobs | |
<%# packages %> | |
<%# packagecloud %> | |
- name: publish-<% release_name %>-<% package_type %>-package-to-packagecloud | |
serial: true | |
serial_groups: [releases] | |
plan: | |
- get: rabbitmq-ci | |
- get: <% version_type %>-deliverable-package-<% package_type %> | |
<%^ use_qa_output %> | |
passed: [build-<% release_name %>-package-<% package_type %>] | |
<%/ use_qa_output %> | |
<%# use_qa_output %> | |
passed: [copy-<% release_name %>-package-<% package_type %>] | |
<%/ use_qa_output %> | |
- get: <% version_type %>-version | |
<%^ use_qa_output %> | |
passed: [build-<% release_name %>-package-<% package_type %>] | |
<%/ use_qa_output %> | |
<%# use_qa_output %> | |
passed: [copy-<% release_name %>-package-<% package_type %>] | |
<%/ use_qa_output %> | |
<%^ use_qa_output %> | |
- get: <% version_type %>-<% package_type %>-package-buildnum | |
<%/ use_qa_output %> | |
<%# use_qa_output %> | |
- get: <% version_type %>-package-buildnum | |
<%/ use_qa_output %> | |
trigger: true | |
<%^ use_qa_output %> | |
passed: [build-<% release_name %>-package-<% package_type %>] | |
<%/ use_qa_output %> | |
<%# use_qa_output %> | |
passed: [copy-<% release_name %>-package-<% package_type %>] | |
<%/ use_qa_output %> | |
- task: extract-transitional-archive | |
file: rabbitmq-ci/server-release/tasks/extract-transitional-archive.yaml | |
input_mapping: | |
package: <% version_type %>-deliverable-package-<% package_type %> | |
on_failure: | |
try: | |
put: slack-alert | |
params: | |
text: | | |
RabbitMQ <% release %>: <% package_type %> package publish failure (<http://ci.rabbitmq.com/teams/main/pipelines/$BUILD_PIPELINE_NAME/jobs/$BUILD_JOB_NAME/builds/$BUILD_NAME|Concourse build $BUILD_NAME>). | |
<%# distributions %> | |
<%# obsolete_packages_to_remove %> | |
- put: '<% repository_type %>-<% package_type %>-package-on-packagecloud:<% distribution_name %>' | |
params: | |
delete_version: '<% matching %>' | |
<%/ obsolete_packages_to_remove %> | |
<%# is-final %> | |
- put: 'final-<% package_type %>-package-on-packagecloud:<% distribution_name %>' | |
<%/ is-final %> | |
<%^ is-final %> | |
<%^ use_qa_output %> | |
- put: 'prerelease-<% package_type %>-package-on-packagecloud:<% distribution_name %>' | |
<%/ use_qa_output %> | |
<%# use_qa_output %> | |
- put: 'dev-<% package_type %>-package-on-packagecloud:<% distribution_name %>' | |
<%/ use_qa_output %> | |
<%/ is-final %> | |
params: | |
package_file_glob: PACKAGES/<% package_file_glob %> | |
on_failure: | |
try: | |
put: slack-alert | |
params: | |
text: | | |
RabbitMQ <% release %>: <% package_type %> package publish failure (<http://ci.rabbitmq.com/teams/main/pipelines/$BUILD_PIPELINE_NAME/jobs/$BUILD_JOB_NAME/builds/$BUILD_NAME|Concourse build $BUILD_NAME>). | |
<%/ distributions %> | |
<%/ packagecloud %> | |
<%/ packages %> | |
## Resources | |
<%# packages %> | |
<%# packagecloud %> | |
<%# distributions %> | |
- name: <% repository_type %>-<% package_type %>-package-on-packagecloud:<% distribution_name %> | |
type: packagecloud-package | |
source: | |
username: ((packagecloud_username)) | |
api_key: ((packagecloud_api_key)) | |
repo: <% name_for_packagecloud %> | |
distribution_name: <% distribution_name %> | |
<%/ distributions %> | |
<%/ packagecloud %> | |
<%/ packages %> | |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment