sebastian wth
03/25/2024, 8:35 PMcurl --request POST '<https://xxxxxxxxxxx/api/plan>' \
--header 'X-Atlantis-Token: xxxxxxxxxx' \
--header 'Content-Type: application/json' \
--data-raw '{
"Repository": "path/to/repo",
"Ref": "featurebranch",
"Type": "Gitlab",
"Paths": [{
"Directory": "path/to/terraformdir",
"Workspace": "workspacename"
}]
}' | jq .
% Total % Received % Xferd Average Speed Time Time Time Current
Dload Upload Total Spent Left Speed
100 922 100 641 100 281 188 82 0:00:03 0:00:03 --:--:-- 270
{
"Error": null,
"Failure": "",
"ProjectResults": [
{
"Command": 1,
"SubCommand": "",
"RepoRelDir": "path/to/terraformdir",
"Workspace": "workspacename",
"Error": null,
"Failure": "This project is currently locked by an unapplied plan from pull !2. To continue, delete the lock from !2 or apply that plan and merge the pull request.\n\nOnce the lock is released, comment `atlantis plan` here to re-plan.",
"PlanSuccess": null,
"PolicyCheckResults": null,
"ApplySuccess": "",
"VersionSuccess": "",
"ImportSuccess": null,
"StateRmSuccess": null,
"ProjectName": "projectname"
}
],
"PlansDeleted": false
}sebastian wth
03/25/2024, 8:36 PMsebastian wth
03/25/2024, 8:41 PMPePe Amengual
03/25/2024, 9:09 PMPePe Amengual
03/25/2024, 9:10 PMPePe Amengual
03/25/2024, 9:12 PM# repo_locking defines whether lock repository when planning.
# If true (default), atlantis try to get a lock.
repo_locking: truePePe Amengual
03/25/2024, 9:13 PMPePe Amengual
03/25/2024, 9:13 PMPePe Amengual
03/25/2024, 9:13 PMPePe Amengual
03/25/2024, 9:21 PMPePe Amengual
03/25/2024, 9:21 PMPePe Amengual
03/25/2024, 9:21 PMsebastian wth
03/25/2024, 10:18 PMsebastian wth
03/25/2024, 10:19 PMPePe Amengual
03/25/2024, 10:22 PMPePe Amengual
03/25/2024, 10:23 PMPePe Amengual
03/25/2024, 10:23 PMsebastian wth
03/25/2024, 10:36 PMsebastian wth
03/25/2024, 10:36 PMsebastian wth
03/25/2024, 11:09 PMPePe Amengual
03/25/2024, 11:09 PMPePe Amengual
03/25/2024, 11:10 PMsebastian wth
03/25/2024, 11:10 PMPePe Amengual
03/25/2024, 11:11 PMPePe Amengual
03/25/2024, 11:11 PMsebastian wth
03/25/2024, 11:11 PM