Skip to content

Commit e78d98b

Browse files
Rollback error update
1 parent 8dceea8 commit e78d98b

File tree

4 files changed

+16
-14
lines changed

4 files changed

+16
-14
lines changed

README.md

Lines changed: 13 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -44,16 +44,16 @@ An example repository using this action : <a href="https://github.com/digital-ai
4444
4545
The action supports the following inputs:
4646
47-
| Name | Description | Required | Default |
48-
|------------------|------------------------------------------------------------------------------------------------------------------------------------------------------------------------|----------|-------------------------|
49-
| `serverUrl` | The URL of the Digital.ai Deploy server. | Yes | |
50-
| `username` | The username for authenticating with Digital.ai Deploy. | Yes | |
51-
| `password` | The password for authenticating with Digital.ai Deploy. | Yes | |
52-
| `action` | Action to perform: create, publish, deploy. <br/>Supported actions are:<br/>`create_publish`, `publish_deploy`, `create_publish_deploy`. | No | `create_publish_deploy` |
53-
| `manifestPath` | The path to the deployit-manifest.xml file. <br/> It mandatory for `create_publish`, `create_publish_deploy` action. <br/>Example: `/deployit-manifest.xml` | Yes | |
54-
| `outputPath` | The path for storing the newly created DAR package. <br/> It mandatory for `create_publish`, `create_publish_deploy` action. <br/>Example: `/outputdar` | Yes | |
55-
| `packageName` | Optional. The name of the newly created DAR package. <br/>Example: `appForAction-1.0.dar` | No | `package.dar` |
56-
| `versionNumber` | Optional. Specify a version number to set in your manifest file. <br/>Example: `1.0` | No | |
57-
| `darPackagePath` | The path to the DAR package. <br/> It mandatory for `publish_deploy` action. <br/>Example: `/dar/appForAction-1.0.dar` | Yes* | |
58-
| `environmentId` | ID of the target environment in Digital.ai Deploy. <br/> It mandatory for `publish_deploy`, `create_publish_deploy` action. <br/> Example: `Environments/envForAction` | Yes* | |
59-
| `rollback` | Optional. Invoke a rollback in case of deployment failure. <br/> Example: `true` | no | `false` |
47+
| Name | Description | Required | Default |
48+
|------------------|-------------------------------------------------------------------------------------------------------------------------------------------------------------------------------|----------|-------------------------|
49+
| `serverUrl` | The URL of the Digital.ai Deploy server. | Yes | |
50+
| `username` | The username for authenticating with Digital.ai Deploy. | Yes | |
51+
| `password` | The password for authenticating with Digital.ai Deploy. | Yes | |
52+
| `action` | Action to perform: create, publish, deploy. <br/>Supported actions are:<br/>`create_publish`, `publish_deploy`, `create_publish_deploy`. | No | `create_publish_deploy` |
53+
| `manifestPath` | The path to the deployit-manifest.xml file. <br/> It is mandatory for the `create_publish`, `create_publish_deploy` action. <br/>Example: `/deployit-manifest.xml` | Yes | |
54+
| `outputPath` | The path for storing the newly created DAR package. <br/> It is mandatory for the `create_publish`, `create_publish_deploy` action. <br/>Example: `/outputdar` | Yes | |
55+
| `packageName` | Optional. The name of the newly created DAR package. <br/>Example: `appForAction-1.0.dar` | No | `package.dar` |
56+
| `versionNumber` | Optional. Specify a version number to set in your manifest file. <br/>Example: `1.0` | No | |
57+
| `darPackagePath` | The path to the DAR package. <br/> It is mandatory for the `publish_deploy` action. <br/>Example: `/dar/appForAction-1.0.dar` | Yes* | |
58+
| `environmentId` | ID of the target environment in Digital.ai Deploy. <br/> It is mandatory for the `publish_deploy`, `create_publish_deploy` action. <br/> Example: `Environments/envForAction` | Yes* | |
59+
| `rollback` | Optional. Invoke a rollback in case of deployment failure. <br/> Example: `true` | no | `false` |

dist/index.js

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -65487,6 +65487,7 @@ class DeployManager {
6548765487
// Archive the rollback task
6548865488
await this.archiveDeploymentTask(rollbackTaskId);
6548965489
console.log("Deployment failed - Rollback executed successfully.");
65490+
throw new Error("Deployment failed - Rollback executed successfully.");
6549065491
} else {
6549165492
throw new Error("Rollback failed.");
6549265493
}

dist/index.js.map

Lines changed: 1 addition & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

src/deploy-manager.js

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -102,6 +102,7 @@ class DeployManager {
102102
// Archive the rollback task
103103
await this.archiveDeploymentTask(rollbackTaskId);
104104
console.log("Deployment failed - Rollback executed successfully.");
105+
throw new Error("Deployment failed - Rollback executed successfully.");
105106
} else {
106107
throw new Error("Rollback failed.");
107108
}

0 commit comments

Comments
 (0)