Skip to content

Commit

Permalink
pipeline(k8s): fix re-trigger all jobs
Browse files Browse the repository at this point in the history
We need to target jobs in k8s pipeline. We also fix a typo in a script.
  • Loading branch information
o-orand committed Jan 12, 2023
1 parent d2a652b commit d7dbc55
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion concourse/pipelines/template/k8s-pipeline.yml.erb
Original file line number Diff line number Diff line change
Expand Up @@ -402,7 +402,7 @@ jobs:
echo "trigger-job -j $BUILD_PIPELINE_NAME/deploy-<%= name %>" >> result-dir/flight-plan
<% end %>
params:
BUILD_PIPELINE_NAME: <%= root_deployment_name %>-bosh-generated
BUILD_PIPELINE_NAME: <%= root_deployment_name %>-k8s-generated
- task: fly-into-concourse
input_mapping: {fly-cmd: trigger-<%= root_deployment_name %>-plan}
output_mapping: {flight-report: concourse-<%= root_deployment_name %>-trigger-report}
Expand Down
2 changes: 1 addition & 1 deletion scripts/generate-and-load-pipeline.sh
Original file line number Diff line number Diff line change
Expand Up @@ -55,7 +55,7 @@ fi

PIPELINE_FILE_PATH="${OUTPUT_DIR}/pipelines/${PIPELINE_NAME}-generated.yml"
if [ ! -e "${PIPELINE_FILE_PATH}" ]; then
echo "SKipping ${PIPELINE_FILE_PATH} does not exit"
echo "Skipping ${PIPELINE_FILE_PATH} does not exit"
exit
fi
PIPELINE_PUBLIC_NAME="${PREFIX}${PIPELINE_NAME}-generated"
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -286,7 +286,7 @@ jobs:
- |
echo "trigger-job -j $BUILD_PIPELINE_NAME/deploy-k8s-sample" >> result-dir/flight-plan
params:
BUILD_PIPELINE_NAME: simple-depls-bosh-generated
BUILD_PIPELINE_NAME: simple-depls-k8s-generated
- task: fly-into-concourse
input_mapping: {fly-cmd: trigger-simple-depls-plan}
output_mapping: {flight-report: concourse-simple-depls-trigger-report}
Expand Down

0 comments on commit d7dbc55

Please sign in to comment.