I am trying to add all my Connect modules to the Forge manifest.yml
. For most this seems to have worked fine but the following two modules cause forge deploy
to error.
"jira:postInstallPage":
{
"key": "post-install-instructions",
"location": "none",
"name": {
"value": "Post Install Instructions"
},
"url": "/post_install",
"cacheable": true
}
"jira:webhooks":
[
{
"event": "jira:issue_updated",
"filter": "project.conversationLinkingEnabled = 'true'",
"url": "/webhook/issue/updated?projectId=${project.id}",
"propertyKeys": [
"intercom.conversation.links"
]
},
{
"event": "comment_created",
"filter": "project.conversationLinkingEnabled = 'true'",
"url": "/webhook/comment/created?projectId=${project.id}"
},
{
"event": "comment_updated",
"filter": "project.conversationLinkingEnabled = 'true'",
"url": "/webhook/comment/updated?projectId=${project.id}"
}
]
forge deploy --verbose` log messages
...
Variables: {
"appId": "ari:cloud:ecosystem::app/643bac58-09ea-4198-8943-87e12c9a3012",
"environmentKey": "default",
"id": "21"
}
◀️ GraphQL
Request ID: 5e3e90656d367cea
Result: {
"appDeployment": {
"status": "FAILED",
"errorDetails": {
"code": "ENVIRONMENT_UPDATE_VALIDATION_FAILED",
"message": "Manifest validation failed",
"fields": {
"validationResult": {
"tid": "785c9013da4026c8",
"code": 400,
"type": "APIError",
"message": "RequestValidationError RequestValidationError: Schema validation error "
}
}
},
"stages": [
{
"description": "Validating manifest",
"events": [
...
{
"__typename": "AppDeploymentLogEvent",
"stepName": "Validate manifest",
"createdAt": "2021-03-11T04:03:52.138Z",
"message": "Manifest validation failed\nValidation errors: {\n \"validationResult\": {\n \"tid\": \"785c9013da4026c8\",\n \"code\": 400,\n \"type\": \"APIError\",\n \"message\": \"RequestValidationError RequestValidationError: Schema validation error \"\n }\n}",
"level": "WARNING"
},
{
"__typename": "AppDeploymentTransitionEvent",
"stepName": "Validate manifest",
"createdAt": "2021-03-11T04:03:52.139Z",
"newStatus": "FAILED"
}
]
},
{
"description": "Snapshotting functions",
"events": []
},
{
"description": "Deploying to environment",
"events": []
}
]
}
}
Manifest validation failed
Validation errors: {
"validationResult": {
"tid": "785c9013da4026c8",
"code": 400,
"type": "APIError",
"message": "RequestValidationError RequestValidationError: Schema validation error "
}
}
Error: Deployment failed
Error: Deployment failed
at ArtifactDeployer.handleErrorEvent (/usr/local/lib/node_modules/@forge/cli/out/deploy/deployer/deployer.js:138:15)
at ArtifactDeployer.pollAndCheckEvents (/usr/local/lib/node_modules/@forge/cli/out/deploy/deployer/deployer.js:61:18)
at processTicksAndRejections (node:internal/process/task_queues:94:5)
at async ArtifactDeployer.monitorDeployment (/usr/local/lib/node_modules/@forge/cli/out/deploy/deployer/deployer.js:72:28)
at async ArtifactDeployer.deploy (/usr/local/lib/node_modules/@forge/cli/out/deploy/deployer/deployer.js:36:9)
at async PackageUploadDeployCommand.execute (/usr/local/lib/node_modules/@forge/cli/out/deploy/package-upload-deploy.js:14:9)
at async CommandLineUI.displayProgress (/usr/local/lib/node_modules/@forge/cli/node_modules/@forge/cli-shared/out/ui/command-line-ui.js:44:28)
at async DeployView.reportDeploymentProgress (/usr/local/lib/node_modules/@forge/cli/out/command-line/view/deploy-view.js:31:24)
at async DeployController.run (/usr/local/lib/node_modules/@forge/cli/out/command-line/controller/deploy-controller.js:58:27)
at async Command.actionProcessor (/usr/local/lib/node_modules/@forge/cli/out/command-line/command.js:74:32)
The logs point to schema validation issues but do not give a clear indication of where the problem is. I have tried with only the postInstallPage
module and only the webhooks
module but both failed. I have copy-pasted these modules from my Connect descriptor (apart from adding the jira:
prefix) just like all the others.
Am I missing something here?