Skip to content

Commit d4a2825

Browse files
authored
Merge pull request #7427 from jesp209i/main
CICD Updates to Troubleshooting and API v2 Documentation
2 parents 0e5a7f6 + 92cc42c commit d4a2825

File tree

3 files changed

+25
-8
lines changed

3 files changed

+25
-8
lines changed

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

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -20,10 +20,6 @@ Explore the practical benefits of using Umbraco CI/CD Flow for your development
2020

2121
* Umbraco CI/CD Flow allows for greater scalability and flexibility in your deployment process. You can adapt your existing CI/CD pipeline to handle larger projects or more complex workflows without having to overhaul your Umbraco Cloud setup.
2222

23-
{% hint style="info" %}
24-
Attaching a CI/CD pipeline to a flexible environment is currently not possible. The CI/CD workflow must go through the mainline deployment workflow.
25-
{% endhint %}
26-
2723
**Centralized Management**
2824

2925
* With Umbraco CI/CD Flow, you can centralize the management of your deployments, tests, and workflows. This makes it easier to monitor, troubleshoot, and optimize your processes, leading to more efficient and reliable deployments. Automating deployment minimizes the risk for human errors that could have a negative effect on the target environment.

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 CI/CD job will skip the remaining steps and complete.
16+
17+
If you expected the deployment to create changes in the Cloud Environment, make sure 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 that the latest deployment has been pushed and deployed in Kudu.
185+
When a change is pushed to a Cloud Environment the Kudu deployment is started. CI/CD is also utilizing this flow.
186+
187+
A couple of steps to try:
188+
- Make sure your code can compile and run (relevant only if you have enabled 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 your 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 retrieves a list of deployments that have created a change in the Git repository of the cloud environment. A deployment can have the state **Completed** or **Failed**.
290+
291+
It only lists 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)