[go: up one dir, main page]

Skip to content

Create button to trigger fix_pipeline on an MR with a failing pipeline

Create a button, similar to Convert to GitLab CI/CD and Generate MR with Duo to trigger the fix_pipeline flow.

Further information:

  1. Only do this for a failing pipeline on an MR
  2. The below curl command shows the parameters for this functionality:
curl --location 'http://gdk.test:3000/api/v4/ai/duo_workflows/workflows' \
    --header 'Content-Type: application/json' \
    --header "PRIVATE-TOKEN: $PAT" \
    --data '{
        "project_id": "22",
        "goal": "MR_URL_WITH_FAILING_PIPELINE",
        "workflow_definition": "fix_pipeline/experimental",
        "agent_privileges": [1,2,3,5],
        "pre_approved_agent_privileges": [1,2,3,5],
        "start_workflow": true,
        "allow_agent_to_request_user": false,
	"source_branch": "BRANCH_FOR_YOUR_MR_HERE"
}'
Edited by Roman Eisner