2019-02-13 23:53:32 +00:00
|
|
|
# Documentation available at https://expeditor.chef.io/docs/getting-started/
|
|
|
|
---
|
2017-09-06 22:14:33 +00:00
|
|
|
|
2017-07-24 16:11:25 +00:00
|
|
|
product_key: inspec
|
|
|
|
|
2017-08-18 17:21:32 +00:00
|
|
|
rubygems:
|
|
|
|
- inspec
|
2018-05-03 14:53:43 +00:00
|
|
|
- inspec-core
|
2019-04-26 17:34:08 +00:00
|
|
|
- inspec-bin:
|
2019-07-05 21:03:12 +00:00
|
|
|
gemspec_path: ./inspec-bin/
|
2019-05-01 13:55:08 +00:00
|
|
|
- inspec-core-bin:
|
2019-07-05 21:03:12 +00:00
|
|
|
gemspec_path: ./inspec-bin/
|
2017-08-18 17:21:32 +00:00
|
|
|
|
2019-04-01 20:13:02 +00:00
|
|
|
pipelines:
|
2020-02-10 23:45:56 +00:00
|
|
|
- habitat/build:
|
|
|
|
env:
|
|
|
|
- HAB_NONINTERACTIVE: "true"
|
|
|
|
- HAB_NOCOLORING: "true"
|
|
|
|
- HAB_STUDIO_SECRET_HAB_NONINTERACTIVE: "true"
|
2020-11-30 13:31:53 +00:00
|
|
|
- docker/build
|
2022-02-21 00:25:02 +00:00
|
|
|
- omnibus/release:
|
2022-02-21 00:19:07 +00:00
|
|
|
env:
|
|
|
|
# The git cache is corrupt more often than not. This always purges the cache.
|
|
|
|
# https://chefio.atlassian.net/wiki/spaces/RELENGKB/pages/2204336129/Resolving+git+cache+build+errors+in+Omnibus
|
|
|
|
- EXPIRE_CACHE: 1
|
2019-07-05 20:58:39 +00:00
|
|
|
- omnibus/adhoc:
|
|
|
|
definition: .expeditor/release.omnibus.yml
|
|
|
|
env:
|
|
|
|
- ADHOC: true
|
2022-02-21 00:19:07 +00:00
|
|
|
- EXPIRE_CACHE: 1
|
2019-07-05 20:58:39 +00:00
|
|
|
- verify:
|
|
|
|
description: Pull Request validation tests
|
2022-02-17 21:29:25 +00:00
|
|
|
public: true
|
2019-07-05 20:58:39 +00:00
|
|
|
env:
|
2019-07-15 22:19:45 +00:00
|
|
|
- LANG: "C.UTF-8"
|
2019-07-05 20:58:39 +00:00
|
|
|
- SLOW: 1
|
|
|
|
- NO_AWS: 1
|
2019-12-03 23:01:35 +00:00
|
|
|
- MT_CPU: 5
|
2022-02-17 20:16:44 +00:00
|
|
|
- coverage:
|
|
|
|
description: Unit test coverage
|
|
|
|
# Private due to use of tokens
|
|
|
|
trigger: pull_request
|
|
|
|
env:
|
|
|
|
- LANG: "C.UTF-8"
|
|
|
|
- SLOW: 1
|
|
|
|
- NO_AWS: 1
|
|
|
|
- MT_CPU: 5
|
2022-03-03 16:31:55 +00:00
|
|
|
# This has been disabled because it regularly hits Docker API rate limits and fails
|
|
|
|
# - integration/resources:
|
|
|
|
# description: Test core resources with test-kitchen.
|
|
|
|
# definition: .expeditor/integration.resources.yml
|
|
|
|
# trigger: pull_request
|
2019-10-18 19:11:02 +00:00
|
|
|
- artifact/habitat:
|
|
|
|
description: Execute tests against the habitat artifact
|
|
|
|
definition: .expeditor/artifact.habitat.yml
|
2020-02-10 23:45:56 +00:00
|
|
|
env:
|
|
|
|
- HAB_NONINTERACTIVE: "true"
|
|
|
|
- HAB_NOCOLORING: "true"
|
|
|
|
- HAB_STUDIO_SECRET_HAB_NONINTERACTIVE: "true"
|
2020-02-11 02:24:49 +00:00
|
|
|
trigger: pull_request
|
2019-07-30 21:37:40 +00:00
|
|
|
|
|
|
|
schedules:
|
|
|
|
- name: integration_schedule
|
|
|
|
description: Periodic Integration Testing
|
|
|
|
cronline: "0 8 * * *"
|
2017-11-14 04:01:51 +00:00
|
|
|
|
2017-07-24 16:11:25 +00:00
|
|
|
slack:
|
2019-07-05 21:03:12 +00:00
|
|
|
notify_channel: inspec-notify
|
2017-07-24 16:11:25 +00:00
|
|
|
|
|
|
|
github:
|
2019-07-05 21:03:12 +00:00
|
|
|
delete_branch_on_merge: true
|
|
|
|
version_tag_format: v{{version}}
|
2022-02-14 06:11:55 +00:00
|
|
|
minor_bump_labels:
|
|
|
|
- "Expeditor: Bump Minor Version"
|
|
|
|
# allow bumping the major release via label
|
|
|
|
major_bump_labels:
|
|
|
|
- "Expeditor: Bump Major Version"
|
2021-06-28 10:04:33 +00:00
|
|
|
|
|
|
|
release_branches:
|
2021-08-24 15:38:04 +00:00
|
|
|
- main:
|
2022-02-10 06:04:13 +00:00
|
|
|
version_constraint: 5.*
|
2022-02-10 14:47:23 +00:00
|
|
|
- inspec-4:
|
2019-07-05 21:46:09 +00:00
|
|
|
version_constraint: 4.*
|
2020-08-26 13:11:13 +00:00
|
|
|
# We need to ensure all configs are in place to appropriately support this branch
|
|
|
|
# - expeditor-development:
|
|
|
|
# version_constraint: 4.*
|
2017-07-24 16:11:25 +00:00
|
|
|
|
2017-08-15 21:32:14 +00:00
|
|
|
changelog:
|
2019-07-05 21:03:12 +00:00
|
|
|
categories:
|
|
|
|
- "Type: New Resource": "New Resources"
|
|
|
|
- "Type: New Feature": "New Features"
|
|
|
|
- "Type: Enhancement": "Enhancements"
|
|
|
|
- "Type: Bug": "Bug Fixes"
|
2017-08-15 21:32:14 +00:00
|
|
|
|
2018-09-07 16:58:11 +00:00
|
|
|
subscriptions:
|
2021-06-28 10:04:33 +00:00
|
|
|
- workload: pull_request_merged:{{github_repo}}:{{release_branch}}:*
|
|
|
|
actions:
|
|
|
|
- built_in:bump_version:
|
|
|
|
ignore_labels:
|
|
|
|
- "Expeditor: Skip All"
|
|
|
|
- "Expeditor: Skip Version Bump"
|
|
|
|
only_if_modified:
|
|
|
|
- .expeditor/*
|
|
|
|
- docs-chef-io/*
|
|
|
|
- etc/*
|
|
|
|
- habitat/*
|
|
|
|
- inspec-bin/*
|
|
|
|
- lib/*
|
|
|
|
- omnibus/*
|
|
|
|
- support/*
|
|
|
|
- tasks/*
|
|
|
|
- test/*
|
|
|
|
- Gemfile*
|
|
|
|
- LICENSE
|
|
|
|
- "*.gemspec"
|
|
|
|
- "*.md"
|
|
|
|
- bash:.expeditor/update_version.sh:
|
|
|
|
only_if: built_in:bump_version
|
|
|
|
- built_in:update_changelog:
|
|
|
|
ignore_labels:
|
|
|
|
- "Expeditor: Skip All"
|
|
|
|
- "Expeditor: Skip Changelog"
|
|
|
|
- trigger_pipeline:omnibus/adhoc:
|
|
|
|
not_if: built_in:bump_version
|
|
|
|
ignore_labels:
|
|
|
|
- "Expeditor: Skip Omnibus"
|
|
|
|
- "Expeditor: Skip All"
|
2022-03-04 21:56:40 +00:00
|
|
|
# DISABLE HABITAT BUILDS 2022-03-04
|
|
|
|
# - trigger_pipeline:artifact/habitat:
|
|
|
|
# only_if: built_in:bump_version
|
|
|
|
# ignore_labels:
|
|
|
|
# - "Expeditor: Skip Habitat"
|
|
|
|
# - "Expeditor: Skip All"
|
2021-06-28 10:04:33 +00:00
|
|
|
- trigger_pipeline:omnibus/release:
|
|
|
|
only_if: built_in:bump_version
|
|
|
|
ignore_labels:
|
|
|
|
- "Expeditor: Skip Omnibus"
|
|
|
|
- "Expeditor: Skip All"
|
2022-03-04 21:56:40 +00:00
|
|
|
# DISABLE HABITAT BUILDS 2022-03-04
|
|
|
|
# - trigger_pipeline:habitat/build:
|
|
|
|
# only_if: built_in:bump_version
|
|
|
|
# ignore_labels:
|
|
|
|
# - "Expeditor: Skip Habitat"
|
|
|
|
# - "Expeditor: Skip All"
|
2021-06-28 10:04:33 +00:00
|
|
|
- built_in:build_gem:
|
|
|
|
only_if:
|
|
|
|
- built_in:bump_version
|
|
|
|
- workload: artifact_published:unstable:inspec:{{version_constraint}}
|
|
|
|
actions:
|
|
|
|
- trigger_pipeline:docker/build
|
|
|
|
- bash:.expeditor/buildkite/wwwrelease.sh:
|
|
|
|
post_commit: true
|
|
|
|
- workload: artifact_published:current:inspec:{{version_constraint}}
|
|
|
|
actions:
|
|
|
|
- built_in:promote_docker_images
|
2022-03-04 21:56:40 +00:00
|
|
|
# DISABLE HABITAT BUILDS 2022-03-04
|
|
|
|
# - built_in:promote_habitat_packages
|
2021-09-22 14:12:13 +00:00
|
|
|
- workload: project_promoted:{{agent_id}}:*
|
|
|
|
actions:
|
|
|
|
- built_in:promote_artifactory_artifact
|
2021-06-28 10:04:33 +00:00
|
|
|
- workload: artifact_published:stable:inspec:{{version_constraint}}
|
|
|
|
actions:
|
|
|
|
- bash:.expeditor/update_dockerfile.sh
|
|
|
|
- built_in:rollover_changelog
|
|
|
|
- built_in:publish_rubygems
|
|
|
|
- built_in:create_github_release
|
|
|
|
- built_in:promote_docker_images
|
2022-03-04 21:56:40 +00:00
|
|
|
# DISABLE HABITAT BUILDS 2022-03-04
|
|
|
|
# - built_in:promote_habitat_packages
|
2021-06-28 10:04:33 +00:00
|
|
|
- bash:.expeditor/publish-release-notes.sh:
|
|
|
|
post_commit: true
|
|
|
|
- purge_packages_chef_io_fastly:{{target_channel}}/inspec/latest:
|
|
|
|
post_commit: true
|
|
|
|
- bash:.expeditor/announce-release.sh:
|
|
|
|
post_commit: true
|
|
|
|
- built_in:notify_chefio_slack_channels
|
|
|
|
- workload: pull_request_opened:{{github_repo}}:{{release_branch}}:*
|
|
|
|
actions:
|
|
|
|
- post_github_comment:.expeditor/templates/pull_request.mustache:
|
|
|
|
ignore_team_members:
|
|
|
|
- inspec/owners
|
|
|
|
- inspec/inspec-core-team
|
|
|
|
- built_in:github_auto_assign_author:
|
|
|
|
only_if_team_member:
|
|
|
|
- inspec/owners
|
2022-02-10 06:04:13 +00:00
|
|
|
- inspec/inspec-core-team
|