in spec/lib/release_tools/update_paths/dynamic_pipeline_spec.rb [40:83]
def build_expected_yaml(stage_name, job_name, version, previous_version, update_type)
source_version = update_type == 'minor' ? version : previous_version
{
'stages' => [stage_name, "finish_notification"],
job_name => base_expected_yaml.merge(
'stage' => stage_name,
'script' => [
'git clone https://gitlab-ci-token:${CI_JOB_TOKEN}@gitlab.com/gitlab-org/gitlab-qa.git',
'cd gitlab-qa',
'bundle install',
"bundle exec gitlab-qa Test::Omnibus::UpdateFromPrevious dev.gitlab.org:5005/gitlab/omnibus-gitlab/gitlab-ee:#{version}-ee.0 #{source_version} #{update_type} -- --tag health_check"
]
),
'notification_job_success' => {
'image' => "$CI_REGISTRY_IMAGE/base:$CI_DEFAULT_BRANCH",
'stage' => 'finish_notification',
'script' => [
"source scripts/setup_ssh.sh",
"source scripts/setup_git.sh",
"bundle exec rake \"release:update_paths:finish_notification[#{previous_version},#{version},success]\""
],
'extends' => [
'.with-bundle',
'.common-ci-tokens'
],
'when' => 'on_success'
},
'notification_job_failed' => {
'image' => "$CI_REGISTRY_IMAGE/base:$CI_DEFAULT_BRANCH",
'stage' => 'finish_notification',
'script' => [
"source scripts/setup_ssh.sh",
"source scripts/setup_git.sh",
"bundle exec rake \"release:update_paths:finish_notification[#{previous_version},#{version},failed]\""
],
'extends' => [
'.with-bundle',
'.common-ci-tokens'
],
'when' => 'on_failure'
}
}
end