An easier method to trigger a pipeline from within a job in another pipeline. For complex software delivery processes, this can make it easier to manage the process or distribute ownership. It also allows customers who want to trigger downstream pipelines based on updates to a shared service, component, or library to trigger their pipelines after an update.
The branch test is used to validate the behavior of this orb, don't use it for anything else that is not related to the tests the other branches run.
CircleCI Orb Registry Page - The official registry page of this orb for all versions, executors, commands, and jobs described.
CircleCI Orb Docs - Docs for using, creating, and publishing CircleCI Orbs.
We welcome issues to and pull requests against this repository!
- Merge pull requests with desired changes to the main branch.
- For the best experience, squash-and-merge and use Conventional Commit Messages.
- Find the current version of the orb.
- You can run
circleci orb info circleci/trigger-pipeline | grep "Latest"
to see the current version.
- You can run
- Create a new Release on GitHub.
- Click "Choose a tag" and create a new semantically versioned tag. (ex: v1.0.0)
- We will have an opportunity to change this before we publish if needed after the next step.
- Click "Choose a tag" and create a new semantically versioned tag. (ex: v1.0.0)
- Click "+ Auto-generate release notes".
- This will create a summary of all of the merged pull requests since the previous release.
- If you have used Conventional Commit Messages it will be easy to determine what types of changes were made, allowing you to ensure the correct version tag is being published.
- Now ensure the version tag selected is semantically accurate based on the changes included.
- Click "Publish Release".
- This will push a new tag and trigger your publishing pipeline on CircleCI.
Prerequisites:
- An initial sevmer deployment must be performed in order for Development orbs to be published and seen in the Orb Registry.
A Development orb can be created to help with rapid development or testing. To create a Development orb, change the orb-tools/publish
job in test-deploy.yml
to be the following:
- orb-tools/publish:
orb_name: circleci/trigger-pipeline
vcs_type: << pipeline.project.type >>
pub_type: dev
# Ensure this job requires all test jobs and the pack job.
requires:
- orb-tools/pack
- command-test
context: orb-publisher
filters: *filters
The job output will contain a link to the Development orb Registry page. The parameters enable_pr_comment
and github_token
can be set to add the relevant publishing information onto a pull request. Please refer to the orb-tools/publish documentation for more information and options.