curl --request POST \
--url https://api.qovery.com/job/{jobId}/deploymentRestriction \
--header 'Authorization: Bearer <token>' \
--header 'Content-Type: application/json' \
--data '
{
"mode": "MATCH",
"type": "PATH",
"value": "job1/src/"
}
'{
"id": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"created_at": "2023-11-07T05:31:56Z",
"mode": "MATCH",
"type": "PATH",
"value": "job1/src/",
"updated_at": "2023-11-07T05:31:56Z"
}Create a job deployment restriction
curl --request POST \
--url https://api.qovery.com/job/{jobId}/deploymentRestriction \
--header 'Authorization: Bearer <token>' \
--header 'Content-Type: application/json' \
--data '
{
"mode": "MATCH",
"type": "PATH",
"value": "job1/src/"
}
'{
"id": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"created_at": "2023-11-07T05:31:56Z",
"mode": "MATCH",
"type": "PATH",
"value": "job1/src/",
"updated_at": "2023-11-07T05:31:56Z"
}JWT tokens should be used with OIDC account (human to machine). JWT tokens used by the Qovery console to communicate with the API have a TTL. Curl Example ' curl https://console.qovery.com/organization -H "Authorization: Bearer $qovery_token" '
Job ID
Match mode will rebuild app only if specified items are updated. Exclude mode will not rebuild app if specified items are updated.
EXCLUDE, MATCH "MATCH"
PATH "PATH"
For PATH restrictions, the value must not start with /
"job1/src/"
Added an environment variable
Match mode will rebuild app only if specified items are updated. Exclude mode will not rebuild app if specified items are updated.
EXCLUDE, MATCH "MATCH"
PATH "PATH"
For PATH restrictions, the value must not start with /
"job1/src/"
Was this page helpful?