Skip to content
Snippets Groups Projects
Commit dd1a4606 authored by Ravi Tripathi's avatar Ravi Tripathi
Browse files

Merge branch 'feat-trigger-downstream-pipeline' into 'master'

Feat trigger downstream pipeline

Closes #7

See merge request !11
parents 7bf68c38 ab93f9d4
No related branches found
No related tags found
1 merge request!11Feat trigger downstream pipeline
...@@ -26,6 +26,7 @@ variables: ...@@ -26,6 +26,7 @@ variables:
stages: # List of stages for jobs, and their order of execution stages: # List of stages for jobs, and their order of execution
- build - build
- clean - clean
- post_build
build_packer: build_packer:
stage: build stage: build
...@@ -43,7 +44,7 @@ build_packer: ...@@ -43,7 +44,7 @@ build_packer:
- 'sed -i -E "s/(enable_user_reg: ).*/\1false/" CRI_XCBC/group_vars/all' - 'sed -i -E "s/(enable_user_reg: ).*/\1false/" CRI_XCBC/group_vars/all'
- echo $PKR_VAR_s3_endpoint - echo $PKR_VAR_s3_endpoint
- packer validate xdmod - packer validate xdmod
- packer build -machine-readable xdmod - packer build -machine-readable xdmod
clean_up: # This job removes older built images clean_up: # This job removes older built images
stage: clean # It only starts when the job in the build stage completes successfully. 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 ...@@ -56,4 +57,9 @@ clean_up: # This job removes older built images
openstack image delete ${img} openstack image delete ${img}
done done
trigger_job:
stage: post_build
variables:
TARGET_ENV: $TARGET_ENV
trigger:
project: rc/terraform-openstack
\ No newline at end of file
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment