apiVersion: jenkins.io/v1 kind: PipelineActivity metadata: annotations: lighthouse.jenkins-x.io/cloneURI: https://github.com/greencapitaltrade/destiny.git lighthouse.jenkins-x.io/job: release pipeline.jenkins-x.io/traceID: 629f391956a14d883b74798b83ab879e creationTimestamp: "2026-08-20T13:43:08Z" generation: 8 labels: branch: main build: "197" context: release created-by-lighthouse: "true" event-GUID: 10edc172-9c9d-11f1-9828-4eff2637770d lighthouse.jenkins-x.io/baseSHA: 9797b47bc7b058ec620489a3c0af9492c0b5710d lighthouse.jenkins-x.io/branch: main lighthouse.jenkins-x.io/buildNum: "1787233388275" lighthouse.jenkins-x.io/context: release lighthouse.jenkins-x.io/id: apitaltrade-destiny-main-release-85296 lighthouse.jenkins-x.io/job: release lighthouse.jenkins-x.io/lastCommitSHA: 9797b47bc7b058ec620489a3c0af9492c0b5710d lighthouse.jenkins-x.io/refs.org: greencapitaltrade lighthouse.jenkins-x.io/refs.repo: destiny lighthouse.jenkins-x.io/type: postsubmit owner: greencapitaltrade podName: apitaltrade-destiny-main-release-27vss-from-build-pack-pod provider: github repository: destiny tekton.dev/pipeline: apitaltrade-destiny-main-release managedFields: - apiVersion: jenkins.io/v1 fieldsType: FieldsV1 fieldsV1: f:metadata: f:labels: f:branch: {} f:context: {} f:owner: {} f:provider: {} f:repository: {} f:spec: f:lastCommitMessage: {} f:lastCommitSHA: {} f:releaseNotesURL: {} f:version: {} manager: jx-changelog-0.10.29 operation: Update time: "2026-08-20T13:45:55Z" - apiVersion: jenkins.io/v1 fieldsType: FieldsV1 fieldsV1: f:metadata: f:annotations: .: {} f:lighthouse.jenkins-x.io/cloneURI: {} f:lighthouse.jenkins-x.io/job: {} f:pipeline.jenkins-x.io/traceID: {} f:labels: .: {} f:build: {} f:created-by-lighthouse: {} f:event-GUID: {} f:lighthouse.jenkins-x.io/baseSHA: {} f:lighthouse.jenkins-x.io/branch: {} f:lighthouse.jenkins-x.io/buildNum: {} f:lighthouse.jenkins-x.io/context: {} f:lighthouse.jenkins-x.io/id: {} f:lighthouse.jenkins-x.io/job: {} f:lighthouse.jenkins-x.io/lastCommitSHA: {} f:lighthouse.jenkins-x.io/refs.org: {} f:lighthouse.jenkins-x.io/refs.repo: {} f:lighthouse.jenkins-x.io/type: {} f:podName: {} f:tekton.dev/pipeline: {} f:spec: .: {} f:baseSHA: {} f:batchPipelineActivity: {} f:build: {} f:buildLogsUrl: {} f:completedTimestamp: {} f:context: {} f:gitBranch: {} f:gitOwner: {} f:gitRepository: {} f:gitUrl: {} f:message: {} f:pipeline: {} f:startedTimestamp: {} f:status: {} f:steps: {} manager: jx-build-controller operation: Update time: "2026-08-20T13:49:51Z" name: greencapitaltrade-destiny-main-197 namespace: jx resourceVersion: "284602851" uid: dc438f0a-bc85-410a-b2c5-1767f68d2692 spec: baseSHA: 9797b47bc7b058ec620489a3c0af9492c0b5710d batchPipelineActivity: {} build: "197" buildLogsUrl: s3://logs-gct-prod-20260425045301534100000007/jenkins-x/logs/greencapitaltrade/destiny/main/197.log completedTimestamp: "2026-08-20T13:49:45Z" context: release gitBranch: main gitOwner: greencapitaltrade gitRepository: destiny gitUrl: https://github.com/greencapitaltrade/destiny.git lastCommitMessage: | fix(callbacks): one host for every redirect, and a completion that runs Signing an agreement end to end on staging broke twice over. **The completion threw.** `Agreement.getPDF` called `application.updateToNextStatus()`, a method deleted from the Application model in June 2024 (2dd6429a) with eight call sites left behind. Digio does not deliver the eSign `document` webhook for this account, so polling on a repeat call is the only way an agreement ever completes — meaning this was the whole path, not a fallback, and it answered `application.updateToNextStatus is not a function` and failed the step. It now calls `engine.completeStep`, the same call the webhook handler makes. **The borrower landed on the wrong host.** The redirect after signing was hardcoded to `destiny.gc-t.in`, so a staging agreement sent the borrower to production Destiny, which 404s because the application only exists on staging. That host was spelled four different ways: `process.env.URL` in routes/documents.js, hardcoded in models/agreement.js, a separate `DIGIO_KYC_REDIRECT_URL` in the DigiLocker step (unset on staging, so the borrower finished KYC with nowhere to land), and a hardcoded `paysay.in/payday/apply/references` in the AA step — which quietly handed a partner's borrower to another brand's page after AA consent. All four now come from `helpers/callback_url.js`, which reads one env var holding a host and nothing else; the scheme and path belong to the code. The AA default is gone rather than replaced: with no LSP destination the relay stays on our own status page instead of inventing one. Co-Authored-By: Claude Opus 5 (1M context) lastCommitSHA: ea48e4a28461477e082c0b955026481b4dd7b987 message: 'Tasks Completed: 1 (Failed: 0, Cancelled 0), Skipped: 0' pipeline: greencapitaltrade/destiny/main releaseNotesURL: https://github.com/greencapitaltrade/destiny/releases/tag/v1.81.5 startedTimestamp: "2026-08-20T13:43:08Z" status: Succeeded steps: - kind: Stage stage: completedTimestamp: "2026-08-20T13:49:45Z" name: from build pack startedTimestamp: "2026-08-20T13:43:17Z" status: Succeeded steps: - completedTimestamp: "2026-08-20T13:43:32Z" name: Git Clone startedTimestamp: "2026-08-20T13:43:17Z" status: Succeeded - completedTimestamp: "2026-08-20T13:43:39Z" name: Next Version startedTimestamp: "2026-08-20T13:43:33Z" status: Succeeded - completedTimestamp: "2026-08-20T13:43:43Z" name: Jx Variables startedTimestamp: "2026-08-20T13:43:40Z" status: Succeeded - completedTimestamp: "2026-08-20T13:44:40Z" name: Build Npm Install startedTimestamp: "2026-08-20T13:43:44Z" status: Succeeded - completedTimestamp: "2026-08-20T13:45:46Z" name: Build Container Build startedTimestamp: "2026-08-20T13:44:40Z" status: Succeeded - completedTimestamp: "2026-08-20T13:45:55Z" name: Promote Changelog startedTimestamp: "2026-08-20T13:45:46Z" status: Succeeded - completedTimestamp: "2026-08-20T13:45:59Z" name: Promote Helm Release startedTimestamp: "2026-08-20T13:45:55Z" status: Succeeded - completedTimestamp: "2026-08-20T13:47:25Z" name: Promote Jx Promote startedTimestamp: "2026-08-20T13:45:59Z" status: Succeeded - completedTimestamp: "2026-08-20T13:49:45Z" name: Publish Org Kb startedTimestamp: "2026-08-20T13:47:26Z" status: Succeeded - kind: Promote promote: environment: staging pullRequest: pullRequestURL: https://github.com/greencapitaltrade/mcu/pull/5556 startedTimestamp: "2026-08-20T13:46:52Z" status: Succeeded startedTimestamp: "2026-08-20T13:46:52Z" status: Succeeded - kind: Promote promote: environment: production pullRequest: pullRequestURL: https://github.com/greencapitaltrade/mcu/pull/5557 startedTimestamp: "2026-08-20T13:47:22Z" status: Succeeded startedTimestamp: "2026-08-20T13:47:22Z" status: Succeeded version: 1.81.5 status: {}