apiVersion: jenkins.io/v1 kind: PipelineActivity metadata: annotations: kubectl.kubernetes.io/last-applied-configuration: | {"apiVersion":"tekton.dev/v1","kind":"PipelineRun","metadata":{"annotations":{"lighthouse.jenkins-x.io/cloneURI":"https://github.com/greencapitaltrade/pepper.git","lighthouse.jenkins-x.io/job":"release"},"labels":{"created-by-lighthouse":"true","event-GUID":"acbe019a-8ab2-11f1-8da5-cff2356ed162","lighthouse.jenkins-x.io/baseSHA":"956911c1a6efe9b004088cff7a405a19a5faf3e2","lighthouse.jenkins-x.io/branch":"main","lighthouse.jenkins-x.io/buildNum":"1785263557675","lighthouse.jenkins-x.io/context":"release","lighthouse.jenkins-x.io/id":"capitaltrade-pepper-main-release-z5jlr","lighthouse.jenkins-x.io/job":"release","lighthouse.jenkins-x.io/lastCommitSHA":"956911c1a6efe9b004088cff7a405a19a5faf3e2","lighthouse.jenkins-x.io/refs.org":"greencapitaltrade","lighthouse.jenkins-x.io/refs.repo":"pepper","lighthouse.jenkins-x.io/type":"postsubmit","tekton.dev/pipeline":"capitaltrade-pepper-main-release"},"name":"capitaltrade-pepper-main-release-cfbg7-retry1","namespace":"jx"},"spec":{"params":[{"name":"BUILD_ID","value":"1785263557675"},{"name":"JOB_NAME","value":"release"},{"name":"JOB_SPEC","value":"type:postsubmit"},{"name":"JOB_TYPE","value":"postsubmit"},{"name":"PULL_BASE_REF","value":"main"},{"name":"PULL_BASE_SHA","value":"956911c1a6efe9b004088cff7a405a19a5faf3e2"},{"name":"PULL_NUMBER","value":""},{"name":"PULL_PULL_REF","value":""},{"name":"PULL_PULL_SHA","value":""},{"name":"PULL_REFS","value":"main:956911c1a6efe9b004088cff7a405a19a5faf3e2"},{"name":"REPO_NAME","value":"pepper"},{"name":"REPO_OWNER","value":"greencapitaltrade"},{"name":"REPO_URL","value":"https://github.com/greencapitaltrade/pepper.git"}],"pipelineSpec":{"params":[{"description":"the unique build number","name":"BUILD_ID","type":"string"},{"description":"the name of the job which is the trigger context name","name":"JOB_NAME","type":"string"},{"description":"the specification of the job","name":"JOB_SPEC","type":"string"},{"description":"'the kind of job: postsubmit or presubmit'","name":"JOB_TYPE","type":"string"},{"description":"the base git reference of the pull request","name":"PULL_BASE_REF","type":"string"},{"description":"the git sha of the base of the pull request","name":"PULL_BASE_SHA","type":"string"},{"default":"","description":"git pull request number","name":"PULL_NUMBER","type":"string"},{"default":"","description":"git pull request ref in the form 'refs/pull/$PULL_NUMBER/head'","name":"PULL_PULL_REF","type":"string"},{"default":"","description":"git revision to checkout (branch, tag, sha, ref…)","name":"PULL_PULL_SHA","type":"string"},{"description":"git pull reference strings of base and latest in the form 'master:$PULL_BASE_SHA,$PULL_NUMBER:$PULL_PULL_SHA:refs/pull/$PULL_NUMBER/head'","name":"PULL_REFS","type":"string"},{"description":"git repository name","name":"REPO_NAME","type":"string"},{"description":"git repository owner (user or organisation)","name":"REPO_OWNER","type":"string"},{"description":"git url to clone","name":"REPO_URL","type":"string"}],"tasks":[{"name":"from-build-pack","params":[{"name":"BUILD_ID","value":"$(params.BUILD_ID)"},{"name":"JOB_NAME","value":"$(params.JOB_NAME)"},{"name":"JOB_SPEC","value":"$(params.JOB_SPEC)"},{"name":"JOB_TYPE","value":"$(params.JOB_TYPE)"},{"name":"PULL_BASE_REF","value":"$(params.PULL_BASE_REF)"},{"name":"PULL_BASE_SHA","value":"$(params.PULL_BASE_SHA)"},{"name":"PULL_NUMBER","value":"$(params.PULL_NUMBER)"},{"name":"PULL_PULL_REF","value":"$(params.PULL_PULL_REF)"},{"name":"PULL_PULL_SHA","value":"$(params.PULL_PULL_SHA)"},{"name":"PULL_REFS","value":"$(params.PULL_REFS)"},{"name":"REPO_NAME","value":"$(params.REPO_NAME)"},{"name":"REPO_OWNER","value":"$(params.REPO_OWNER)"},{"name":"REPO_URL","value":"$(params.REPO_URL)"}],"taskSpec":{"metadata":{},"params":[{"description":"the unique build number","name":"BUILD_ID","type":"string"},{"description":"the name of the job which is the trigger context name","name":"JOB_NAME","type":"string"},{"description":"the specification of the job","name":"JOB_SPEC","type":"string"},{"description":"'the kind of job: postsubmit or presubmit'","name":"JOB_TYPE","type":"string"},{"description":"the base git reference of the pull request","name":"PULL_BASE_REF","type":"string"},{"description":"the git sha of the base of the pull request","name":"PULL_BASE_SHA","type":"string"},{"default":"","description":"git pull request number","name":"PULL_NUMBER","type":"string"},{"default":"","description":"git pull request ref in the form 'refs/pull/$PULL_NUMBER/head'","name":"PULL_PULL_REF","type":"string"},{"default":"","description":"git revision to checkout (branch, tag, sha, ref…)","name":"PULL_PULL_SHA","type":"string"},{"description":"git pull reference strings of base and latest in the form 'master:$PULL_BASE_SHA,$PULL_NUMBER:$PULL_PULL_SHA:refs/pull/$PULL_NUMBER/head'","name":"PULL_REFS","type":"string"},{"description":"git repository name","name":"REPO_NAME","type":"string"},{"description":"git repository owner (user or organisation)","name":"REPO_OWNER","type":"string"},{"description":"git url to clone","name":"REPO_URL","type":"string"}],"spec":null,"stepTemplate":{"computeResources":{"limits":{"cpu":"400m","memory":"512Mi"},"requests":{"cpu":"100m","memory":"128Mi"}},"env":[{"name":"NPM_CONFIG_USERCONFIG","value":"/tekton/home/npm/.npmrc"},{"name":"HOME","value":"/tekton/home"},{"name":"BUILD_ID","value":"$(params.BUILD_ID)"},{"name":"JOB_NAME","value":"$(params.JOB_NAME)"},{"name":"JOB_SPEC","value":"$(params.JOB_SPEC)"},{"name":"JOB_TYPE","value":"$(params.JOB_TYPE)"},{"name":"PULL_BASE_REF","value":"$(params.PULL_BASE_REF)"},{"name":"PULL_BASE_SHA","value":"$(params.PULL_BASE_SHA)"},{"name":"PULL_NUMBER","value":"$(params.PULL_NUMBER)"},{"name":"PULL_PULL_REF","value":"$(params.PULL_PULL_REF)"},{"name":"PULL_PULL_SHA","value":"$(params.PULL_PULL_SHA)"},{"name":"PULL_REFS","value":"$(params.PULL_REFS)"},{"name":"REPO_NAME","value":"$(params.REPO_NAME)"},{"name":"REPO_OWNER","value":"$(params.REPO_OWNER)"},{"name":"REPO_URL","value":"$(params.REPO_URL)"}],"envFrom":[{"secretRef":{"name":"jx-boot-job-env-vars","optional":true}}],"volumeMounts":[{"mountPath":"/tekton/home/npm","name":"npmrc"}],"workingDir":"/workspace/source"},"steps":[{"computeResources":{},"envFrom":[{"secretRef":{"name":"jx-boot-job-env-vars","optional":true}}],"image":"ghcr.io/tektoncd/github.com/tektoncd/pipeline/cmd/git-init:v0.27.0@sha256:8bfb6edbd8ce4608af957a3a38444512c14713bc9fc0d60308f228c61be4c83f","name":"git-clone","script":"#!/bin/sh\nexport SUBDIR=\"source\"\necho \"git cloning url: $REPO_URL version $PULL_BASE_REF@$PULL_BASE_SHA to dir: $SUBDIR\"\ngit clone $REPO_URL $SUBDIR\ncd $SUBDIR\ngit reset --hard $PULL_BASE_SHA\ngit config --add user.name ${GIT_AUTHOR_NAME:-jenkins-x-bot}\ngit config --add user.email ${GIT_AUTHOR_EMAIL:-jenkins-x@googlegroups.com}\necho \"checked out revision: $PULL_BASE_REF@$PULL_BASE_SHA to dir: $SUBDIR\"\n","workingDir":"/workspace"},{"computeResources":{},"env":[{"name":"GIT_TOKEN","valueFrom":{"secretKeyRef":{"key":"password","name":"tekton-git"}}},{"name":"GIT_USER","valueFrom":{"secretKeyRef":{"key":"username","name":"tekton-git"}}}],"image":"ghcr.io/jenkins-x/jx-release-version:2.10.0","name":"next-version","script":"#!/usr/bin/env sh\njx-release-version --tag \u003e VERSION\n"},{"computeResources":{"requests":{"cpu":"400m","memory":"512Mi"}},"image":"ghcr.io/jenkins-x/jx-boot:3.17.60","name":"jx-variables","script":"#!/usr/bin/env sh\njx gitops variables\n"},{"computeResources":{},"image":"node:22-slim","name":"build-npm-install","script":"#!/bin/sh\n# Re-resolve private @greencapitaltrade packages via the in-cluster Nexus\n# npm-group (the default registry in CI, no auth needed). The committed\n# lockfile pins them to npm.pkg.github.com, but CI has no GitHub npm token\n# so npm install 401s. Drop resolved/integrity for ONLY the @greencapitaltrade\n# scope (and any local file: pins) so npm re-fetches just those from Nexus,\n# which mirrors them. All other deps stay pinned to the committed lockfile.\necho \"=== npm install ===\" \u003e\u00262\n[ -f package-lock.json ] \u0026\u0026 node -e 'const fs=require(\"fs\");const l=JSON.parse(fs.readFileSync(\"package-lock.json\"));for(const [k,p] of Object.entries(l.packages||{})){if(k.includes(\"@greencapitaltrade/\")\u0026\u0026p.resolved){delete p.resolved;delete p.integrity}}fs.writeFileSync(\"package-lock.json\",JSON.stringify(l,null,2))'\nfor attempt in 1 2 3; do\n npm install \u0026\u0026 break\n echo \"npm install attempt $attempt failed, retrying in 5s...\" \u003e\u00262\n sleep 5\n [ \"$attempt\" = \"3\" ] \u0026\u0026 { echo \"npm install failed after 3 attempts\" \u003e\u00262; exit 1; }\ndone\n"},{"computeResources":{},"image":"gcr.io/kaniko-project/executor:v1.9.1-debug","name":"build-container-build","script":"#!/busybox/sh\nsource .jx/variables.sh\ncp /tekton/creds/.docker/config.json /kaniko/.docker/config.json\n/kaniko/executor $KANIKO_FLAGS --context=/workspace/source --dockerfile=${DOCKERFILE_PATH:-Dockerfile} --destination=$PUSH_CONTAINER_REGISTRY/$DOCKER_REGISTRY_ORG/$APP_NAME:$VERSION\n"},{"computeResources":{},"image":"ghcr.io/jenkins-x/jx-boot:3.17.60","name":"promote-changelog","script":"#!/usr/bin/env sh\nsource .jx/variables.sh\n\nif [ -d \"charts/$REPO_NAME\" ]; then\njx gitops yset -p version -v \"$VERSION\" -f ./charts/$REPO_NAME/Chart.yaml\njx gitops yset -p appVersion -v \"$VERSION\" -f ./charts/$REPO_NAME/Chart.yaml\nyq e -i '.sources = ((.sources // []) + \"'$REPO_URL'\" | unique)' ./charts/$REPO_NAME/Chart.yaml\njx gitops yset -p 'image.repository' -v $DOCKER_REGISTRY/$DOCKER_REGISTRY_ORG/$APP_NAME -f ./charts/$REPO_NAME/values.yaml\njx gitops yset -p 'image.tag' -v \"$VERSION\" -f ./charts/$REPO_NAME/values.yaml;\nelse echo no charts; fi\n\ngit add * || true\ngit commit -a -m \"chore: release $VERSION\" --allow-empty\ngit tag -fa v$VERSION -m \"Release version $VERSION\"\ngit push --force origin v$VERSION\n\njx changelog create --version v${VERSION} --output-markdown ../changelog.md\n"},{"computeResources":{},"image":"ghcr.io/jenkins-x/jx-boot:3.17.60","name":"promote-helm-release","script":"#!/usr/bin/env sh\nsource .jx/variables.sh\njx gitops helm release\n"},{"computeResources":{},"image":"ghcr.io/jenkins-x-plugins/jx-promote:0.6.45","name":"promote-jx-promote","script":"#!/usr/bin/env sh\nsource .jx/variables.sh\njx promote -b --all --timeout 1h --no-poll --add-changelog ../changelog.md\n"},{"computeResources":{},"image":"alpine:latest","name":"publish-org-kb","script":"#!/bin/sh\nset -eu\napk add --no-cache git jq \u003e/dev/null 2\u003e\u00261\ngit clone --depth 1 https://github.com/greencapitaltrade/org-kb.git /tmp/org-kb\ncd /workspace/source \u0026\u0026 sh /tmp/org-kb/bin/publish-service.sh\n","workingDir":"/workspace/source"}],"volumes":[{"name":"npmrc","secret":{"optional":true,"secretName":"npmrc"}}],"workspaces":[{"description":"The git repo will be cloned onto the volume backing this workspace","mountPath":"/workspace","name":"output"}]},"workspaces":[{"name":"output","workspace":"output"}]}],"workspaces":[{"description":"The git repo will be cloned onto the volume backing this workspace","name":"output"}]},"taskRunTemplate":{"podTemplate":{"affinity":{"nodeAffinity":{"preferredDuringSchedulingIgnoredDuringExecution":[{"preference":{"matchExpressions":[{"key":"gc-t.in/priority","operator":"NotIn","values":["spot"]}]},"weight":100}]}},"tolerations":[{"effect":"NoSchedule","key":"pool","operator":"Equal","value":"spot"},{"effect":"PreferNoSchedule","key":"workload","operator":"Equal","value":"stateful"}]},"serviceAccountName":"tekton-bot"},"timeouts":{"pipeline":"1h0m0s"},"workspaces":[{"emptyDir":{},"name":"output"}]}} lighthouse.jenkins-x.io/cloneURI: https://github.com/greencapitaltrade/pepper.git lighthouse.jenkins-x.io/job: release pipeline.jenkins-x.io/traceID: b10a72931bfe36b587bbcffee6cfa7fc creationTimestamp: "2026-07-28T19:03:57Z" generation: 5 labels: branch: main build: "32" buildID: "1785263557675" created-by-lighthouse: "true" event-GUID: acbe019a-8ab2-11f1-8da5-cff2356ed162 lighthouse.jenkins-x.io/baseSHA: 956911c1a6efe9b004088cff7a405a19a5faf3e2 lighthouse.jenkins-x.io/branch: main lighthouse.jenkins-x.io/buildNum: "1785263557675" lighthouse.jenkins-x.io/context: release lighthouse.jenkins-x.io/id: capitaltrade-pepper-main-release-z5jlr lighthouse.jenkins-x.io/job: release lighthouse.jenkins-x.io/lastCommitSHA: 956911c1a6efe9b004088cff7a405a19a5faf3e2 lighthouse.jenkins-x.io/refs.org: greencapitaltrade lighthouse.jenkins-x.io/refs.repo: pepper lighthouse.jenkins-x.io/type: postsubmit owner: greencapitaltrade podName: capitaltrade-pepper-main-release-cfbg7-from-build-pack-pod provider: "" repository: pepper tekton.dev/pipeline: capitaltrade-pepper-main-release managedFields: - apiVersion: jenkins.io/v1 fieldsType: FieldsV1 fieldsV1: f:metadata: f:labels: .: {} f:branch: {} f:build: {} f:buildID: {} f:owner: {} f:provider: {} f:repository: {} f:spec: .: {} f:batchPipelineActivity: {} f:build: {} f:gitBranch: {} f:gitOwner: {} f:gitRepository: {} f:pipeline: {} manager: jx-gitops-1.3.15 operation: Update time: "2026-07-28T19:03:57Z" - apiVersion: jenkins.io/v1 fieldsType: FieldsV1 fieldsV1: f:metadata: f:annotations: .: {} f:kubectl.kubernetes.io/last-applied-configuration: {} f:lighthouse.jenkins-x.io/cloneURI: {} f:lighthouse.jenkins-x.io/job: {} f:pipeline.jenkins-x.io/traceID: {} f:labels: 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:buildLogsUrl: {} f:completedTimestamp: {} f:context: {} f:gitUrl: {} f:lastCommitSHA: {} f:message: {} f:startedTimestamp: {} f:status: {} f:steps: {} manager: jx-build-controller operation: Update time: "2026-07-28T19:34:33Z" name: greencapitaltrade-pepper-main-32 namespace: jx resourceVersion: "224212836" uid: d72b9d15-8422-472d-8939-1af212076e58 spec: baseSHA: 956911c1a6efe9b004088cff7a405a19a5faf3e2 batchPipelineActivity: {} build: "32" buildLogsUrl: s3://logs-gct-prod-20260425045301534100000007/jenkins-x/logs/greencapitaltrade/pepper/main/32.log completedTimestamp: "2026-07-28T19:18:06Z" context: release gitBranch: main gitOwner: greencapitaltrade gitRepository: pepper gitUrl: https://github.com/greencapitaltrade/pepper.git lastCommitSHA: 956911c1a6efe9b004088cff7a405a19a5faf3e2 message: 'Tasks Completed: 1 (Failed: 1, Cancelled 0), Skipped: 0' pipeline: greencapitaltrade/pepper/main startedTimestamp: "2026-07-28T19:18:05Z" status: Failed steps: - kind: Stage stage: name: from build pack startedTimestamp: "2026-07-28T19:02:31Z" status: Failed steps: - completedTimestamp: "2026-07-28T19:03:23Z" name: Git Clone startedTimestamp: "2026-07-28T19:02:31Z" status: Succeeded - completedTimestamp: "2026-07-28T19:03:52Z" name: Next Version startedTimestamp: "2026-07-28T19:03:24Z" status: Succeeded - completedTimestamp: "2026-07-28T19:03:57Z" name: Jx Variables startedTimestamp: "2026-07-28T19:03:53Z" status: Succeeded - completedTimestamp: "2026-07-28T19:04:58Z" name: Build Npm Install startedTimestamp: "2026-07-28T19:02:34Z" status: Failed - name: Build Container Build startedTimestamp: "2026-07-28T19:02:34Z" status: Running - name: Promote Changelog status: Pending - name: Promote Helm Release status: Pending - name: Promote Jx Promote status: Pending - name: Publish Org Kb status: Pending status: {}