Skip to content
Snippets Groups Projects

Feat trigger downstream pipeline

1 file
+ 8
2
Compare changes
  • Side-by-side
  • Inline
+ 8
2
@@ -26,6 +26,7 @@ variables:
stages: # List of stages for jobs, and their order of execution
- build
- clean
- post_build
build_packer:
stage: build
@@ -43,7 +44,7 @@ build_packer:
- 'sed -i -E "s/(enable_user_reg: ).*/\1false/" CRI_XCBC/group_vars/all'
- echo $PKR_VAR_s3_endpoint
- packer validate xdmod
- packer build -machine-readable xdmod
- packer build -machine-readable xdmod
clean_up: # This job removes older built images
stage: clean # It only starts when the job in the build stage completes successfully.
@@ -56,4 +57,9 @@ clean_up: # This job removes older built images
openstack image delete ${img}
done
trigger_job:
stage: post_build
variables:
TARGET_ENV: $TARGET_ENV
trigger:
project: rc/terraform-openstack
\ No newline at end of file
Loading