Skip to content

Commit 41b1848

Browse files
committed
56681 CICD Verify Deployment
1 parent d183a2d commit 41b1848

File tree

2 files changed

+25
-4
lines changed

2 files changed

+25
-4
lines changed

umbraco-cloud/build-and-customize-your-solution/handle-deployments-and-environments/umbraco-cicd/troubleshooting.md

Lines changed: 19 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -10,6 +10,12 @@ The reason for this is that the KUDU deploy process fails. This process takes th
1010

1111
To resolve this issue, remove the `RestorePackagesWithLockFile` to allow the deployments to go through as expected.
1212

13+
### Deployment reports: No changes detected - cleaning up
14+
15+
The package you uploaded didn't contain any changes that would affect the git repository on the Cloud Environment. The CICD job will skip the rest of its usual steps and complete.
16+
17+
If the expected that the deployment should create a change to the Cloud Environment, please make sure that you are uploading the correct zip file.
18+
1319
## Cloud Sync
1420

1521
### The projects left-most mainline environment has changed
@@ -163,16 +169,27 @@ In rare cases deployments fail, and the cloud infrastructure doesn't clean up co
163169

164170
In order to fix this issue, you need to use [KUDU](../../../optimize-and-maintain-your-site/monitor-and-troubleshoot/power-tools/) to remove the leftover marker file.
165171

166-
1. Access KUDU on the "left-most" environment
172+
1. Access KUDU on the affected environment
167173

168174
* If you only have one environment you want the live environment
169-
* If you have more than one environment, you want the left-most mainline environment
175+
* If you use V1 endpoints and have more than one environment, you want the left-most mainline environment
170176

171177
3. Navigate to `site` > `locks` folder In there, there should be a file named `updating`
172178
4. Remove the `updating` file.
173179

174180
Once the marker file is removed, run your pipeline again.
175181

182+
### Unable to verify Deployment has finished
183+
184+
This error will be shown when the system is unable to verify the latest deployment is pushed and deployed in Kudu.
185+
When a change is pushed to a Cloud Environment the Kudu deployment is started. CICD is also utilizing this flow.
186+
187+
A couple of steps to try:
188+
- make sure your code can compile and run (mostly relevant if you are using the skipBuildAndRestore toggle in V2)
189+
- running npm commands via csproj files is generally unsupported on Umbraco Cloud
190+
- create and commit a small change and try deploying again
191+
- a small change can be adding a dummy text file next to you code files or adding a comment in a cs file.
192+
176193
## Environment errors after deployment
177194

178195
### Unable to determine environment by its {environment-id}

umbraco-cloud/build-and-customize-your-solution/handle-deployments-and-environments/umbraco-cicd/umbracocloudapi.md

Lines changed: 6 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -277,15 +277,18 @@ Should the deployment fail, check the `deploymentStatusMessages` for more inform
277277
],
278278
"createdUtc": string,
279279
"completedUtc":string,
280-
"modifiedUtc": string
280+
"modifiedUtc": string,
281+
"cloudRepositoryUpdated": boolean
281282
}
282283
```
283284

284285
## Query Deployments and fetch Changes
285286

286287
### Get Deployments
287288

288-
The endpoint lets you retrieve a list of completed deployments. It can only list deployments that have been run through the api.
289+
The endpoint lets you retrieve a list of deployments that have created a change in the git repository of the Cloud Environment. Deployment can have state 'Completed' or 'Failed'.
290+
291+
It can only list deployments that have been run through the api.
289292

290293
The API allows you to filter and limit the number of returned deployments using query parameters:
291294

@@ -327,6 +330,7 @@ The response from this API call will return an object containing a list of deplo
327330
"createdUtc": string,
328331
"modifiedUtc": string,
329332
"completedUtc": string,
333+
"cloudRepositoryUpdated": boolean
330334
}
331335
],
332336
"totalItems": number,

0 commit comments

Comments
 (0)