Ability to trigger a specific workflow for a specific branch in one API call
A
Adambeck
I'd like to be able to kick off a specific workflow for a particular branch on a project all in one API call. For example, send a post request (with Circle-Token header) that triggers the "build" workflow on branch "main" (In support of the Black Lives Matter movement, a lot of projects are switching to main for their default branch)right now, I'm having a hard time getting the API to kick off a build that isn't on branch "master"
CCI-I-1602
Autopilot
Merged in a post:
Que services can I use to execute specific workflow?
J
Jmurillo@lulobank.com
I'm using this but when I consume this service "https://circleci.com/api/v2/project/{project-slug}/pipeline" it execute two workflows at time
What parameter can I use to select specific workflow?
#------------------------------------------ JOB EXECUTION API ------------------------------------------------------#
report-test-vpn:
jobs:
- build_and_test_vpn:
platform: << pipeline.parameters.platform_workflow >>
context: << pipeline.parameters.context_workflow >>
execution-tags: << pipeline.parameters.tags_external_workflow_only_execution >>
notification-information: << pipeline.parameters.text_notification_slack_external_workflow >>
slackChannel1: << pipeline.parameters.channel_1_slack_external_workflow >>
slackChannel2: << pipeline.parameters.channel_2_slack_external_workflow >>
filters:
branches:
only: << pipeline.parameters.branch_execution >>
#------------------------------------------ JOB EXECUTION API sin VPN------------------------------------------------------#
report-not-vpn:
jobs:
- job_only_one_execution:
environment: << pipeline.parameters.environment_external_workflow >>
platform: << pipeline.parameters.platform_workflow >>
tags: << pipeline.parameters.tags_external_workflow_only_execution >>
context: << pipeline.parameters.context_external_workflow >>
filters:
branches:
only: << pipeline.parameters.branch_execution >>
- send_notification_slack_only_execution:
environment: << pipeline.parameters.environment_external_workflow >>
platform: << pipeline.parameters.platform_external_workflow >>
notification-information: << pipeline.parameters.text_notification_slack_external_workflow >>
slackChannel1: << pipeline.parameters.channel_1_slack_external_workflow >>
slackChannel2: << pipeline.parameters.channel_2_slack_external_workflow >>