Octopus Deploy version 3.4.3
This one is odd, but I’m guessing there’s a valid reason for it.
I issue an API request to:
https://our-octopus/api/releases/Releases-7781/deployments
What we get back is this (notice the first deployment item has variables, the rest do not):
{
"ItemType": "Deployment",
"IsStale": false,
"TotalResults": 3,
"ItemsPerPage": 30,
"Items": [
{
"Id": "Deployments-13954",
"ReleaseId": "Releases-7781",
"EnvironmentId": "Environments-23",
"TenantId": null,
"ForcePackageDownload": false,
"ForcePackageRedeployment": false,
"SkipActions": [],
"SpecificMachineIds": [],
"DeploymentProcessId": "deploymentprocess-Projects-582-s-7-23GU6",
"ManifestVariableSetId": "variableset-Deployments-13954",
"TaskId": "ServerTasks-43638",
"ProjectId": "Projects-582",
"ChannelId": "Channels-1702",
"UseGuidedFailure": false,
"Comments": null,
"FormValues": {},
"QueueTime": null,
"Name": "Deploy to Production",
"Created": "2017-08-02T21:15:26.761+00:00",
"Links": {
"Self": "/api/deployments/Deployments-13954",
"Release": "/api/releases/Releases-7781",
"Environment": "/api/environments/Environments-23",
"Project": "/api/projects/Projects-582",
"Task": "/api/tasks/ServerTasks-43638",
"Web": "/app#/deployments/Deployments-13954",
"Artifacts": "/api/artifacts?regarding=Deployments-13954",
"Interruptions": "/api/interruptions?regarding=Deployments-13954",
"Variables": "/api/variables/variableset-Deployments-13954"
}
},
{
"Id": "Deployments-13900",
"ReleaseId": "Releases-7781",
"EnvironmentId": "Environments-22",
"TenantId": null,
"ForcePackageDownload": false,
"ForcePackageRedeployment": false,
"SkipActions": [],
"SpecificMachineIds": [],
"DeploymentProcessId": "deploymentprocess-Projects-582-s-7-23GU6",
"ManifestVariableSetId": null,
"TaskId": "ServerTasks-43500",
"ProjectId": "Projects-582",
"ChannelId": "Channels-1702",
"UseGuidedFailure": false,
"Comments": null,
"FormValues": {},
"QueueTime": null,
"Name": "Deploy to QA",
"Created": "2017-08-01T20:16:14.824+00:00",
"Links": {
"Self": "/api/deployments/Deployments-13900",
"Release": "/api/releases/Releases-7781",
"Environment": "/api/environments/Environments-22",
"Project": "/api/projects/Projects-582",
"Task": "/api/tasks/ServerTasks-43500",
"Web": "/app#/deployments/Deployments-13900",
"Artifacts": "/api/artifacts?regarding=Deployments-13900",
"Interruptions": "/api/interruptions?regarding=Deployments-13900"
}
},
{
"Id": "Deployments-13891",
"ReleaseId": "Releases-7781",
"EnvironmentId": "Environments-21",
"TenantId": null,
"ForcePackageDownload": false,
"ForcePackageRedeployment": false,
"SkipActions": [],
"SpecificMachineIds": [],
"DeploymentProcessId": "deploymentprocess-Projects-582-s-7-23GU6",
"ManifestVariableSetId": null,
"TaskId": "ServerTasks-43489",
"ProjectId": "Projects-582",
"ChannelId": "Channels-1702",
"UseGuidedFailure": false,
"Comments": null,
"FormValues": {},
"QueueTime": null,
"Name": "Deploy to Development",
"Created": "2017-08-01T18:28:41.436+00:00",
"Links": {
"Self": "/api/deployments/Deployments-13891",
"Release": "/api/releases/Releases-7781",
"Environment": "/api/environments/Environments-21",
"Project": "/api/projects/Projects-582",
"Task": "/api/tasks/ServerTasks-43489",
"Web": "/app#/deployments/Deployments-13891",
"Artifacts": "/api/artifacts?regarding=Deployments-13891",
"Interruptions": "/api/interruptions?regarding=Deployments-13891"
}
}
],
"Links": {
"Self": "/api/releases/Releases-7781/deployments",
"Template": "/api/releases/Releases-7781/deployments",
"Page.Current": "/api/releases/Releases-7781/deployments?skip=0",
"Page.0": "/api/releases/Releases-7781/deployments?skip=0"
}
}
Why are the last two missing the Variables
link?
And, if I just append the deployment number (variableset-Deployments-13900 for example) I still get a 404. There’s another instance where the same thing happened as above for a different release, same project, but, none of the deployments have the Variables
link. Looking at the deployment in the web ui doesn’t seem to show any kind of real difference between those with Variables
and those without.