Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[Bug]: Bitbucket multibranch tag build doesn't load pipeline_config.groovy on the repository #308

Open
e88z4 opened this issue Sep 26, 2022 · 3 comments · May be fixed by #319
Open

[Bug]: Bitbucket multibranch tag build doesn't load pipeline_config.groovy on the repository #308

e88z4 opened this issue Sep 26, 2022 · 3 comments · May be fixed by #319
Labels
enhancement New feature or request

Comments

@e88z4
Copy link

e88z4 commented Sep 26, 2022

Jenkins Version

2.346.2

JTE Version

2.5.2

Bug Description

My multibranch build is successfully build the job on the branch build. After the branch build is successful, I add a tag on the same commit to produce a tag build. The tag build fails to load the pipeline_config.groovy to load all the necessary libraries on the repository.

Relevant successful log output from branch build

[JTE] Obtained Pipeline Configuration File 
[JTE] -- scm: git ssh://[email protected]/~ga95/container-image-build-pipeline.git
[JTE] -- file path: pipeline_config.groovy
[JTE] Pipeline Configuration Modifications 
[JTE] Configurations Added:
[JTE] - libraries.pod_template.cloud set to prod-ucp-ca--prod-devops-jenkinsagents-ns
[JTE] - keywords.development set to ^([Dd]evelop(ment|er|))|([Hh]otfix/.*)|([Ff]eature/.*)|([Pp][Rr]-.*)|([Rr]elease/.)|([Mm](aster|ain))$
[JTE] - keywords.release_candidate set to ^v(0|[1-9]\d*)\.(0|[1-9]\d*)\.(0|[1-9]\d*)(?:-rc\.(0|[1-9]\d*))$
[JTE] - keywords.release set to ^v(0|[1-9]\d*)\.(0|[1-9]\d*)\.(0|[1-9]\d*)$
[JTE] Configurations Deleted: None
[JTE] Configurations Changed: None
[JTE] Configurations Duplicated: None
[JTE] Configurations Ignored: None
[JTE] Subsequent May Merge:
[JTE] - libraries
[JTE] Subsequent May Override:
[JTE] - libraries.pod_template.cloud
 > git rev-parse --resolve-git-dir /var/jenkins_home/caches/git-3762d4a7f84a6f68b509e079c059f52c/.git # timeout=10
Setting origin to ssh://[email protected]/~ga95/container-build-example.git
 > git config remote.origin.url ssh://[email protected]/~ga95/container-build-example.git # timeout=10
Fetching & pruning origin...
Listing remote references...
 > git config --get remote.origin.url # timeout=10
 > git --version # timeout=10
 > git --version # 'git version 2.30.2'
using GIT_SSH to set credentials SSH Key
[INFO] Currently running in a labeled security context
 > /usr/bin/chcon --type=ssh_home_t /var/jenkins_home/caches/git-3762d4a7f84a6f68b509e079c059f52c@tmp/jenkins-gitclient-ssh5268703982420155547.key
Verifying host key using known hosts file, will automatically accept unseen keys
 > git ls-remote -h -t -- ssh://[email protected]/~ga95/container-build-example.git # timeout=10
Fetching upstream changes from origin
 > git config --get remote.origin.url # timeout=10
using GIT_SSH to set credentials SSH Key
[INFO] Currently running in a labeled security context
 > /usr/bin/chcon --type=ssh_home_t /var/jenkins_home/caches/git-3762d4a7f84a6f68b509e079c059f52c@tmp/jenkins-gitclient-ssh7729379460168470739.key
Verifying host key using known hosts file, will automatically accept unseen keys
 > git fetch --tags --force --progress --prune -- origin +refs/heads/*:refs/remotes/origin/* # timeout=10
Checking branches...
  Checking branch main
    Met criteria
Processed 1 branches (query complete)
Checking tags...
Processed 1 tags (query complete)
[JTE] Obtained Template Configuration File 
[JTE] -- scm: git ssh://[email protected]/~ga95/container-build-example.git
[JTE] -- file path: pipeline_config.groovy
[JTE] Pipeline Configuration Modifications 
[JTE] Configurations Added:
[JTE] - libraries.docker.dtr_credential_id set to devopstoolchain
[JTE] - libraries.docker.scm_jenkins_credential_id set to gitget-userid-password
[JTE] Configurations Deleted: None
[JTE] Configurations Changed: None
[JTE] Configurations Duplicated: None
[JTE] Configurations Ignored: None
[JTE] Subsequent May Merge: None
[JTE] Subsequent May Override: None
 > git rev-parse --resolve-git-dir /var/jenkins_home/caches/git-3762d4a7f84a6f68b509e079c059f52c/.git # timeout=10
Setting origin to ssh://[email protected]/~ga95/container-build-example.git
 > git config remote.origin.url ssh://[email protected]/~ga95/container-build-example.git # timeout=10
Fetching & pruning origin...
Listing remote references...
 > git config --get remote.origin.url # timeout=10
 > git --version # timeout=10
 > git --version # 'git version 2.30.2'
using GIT_SSH to set credentials SSH Key
[INFO] Currently running in a labeled security context
 > /usr/bin/chcon --type=ssh_home_t /var/jenkins_home/caches/git-3762d4a7f84a6f68b509e079c059f52c@tmp/jenkins-gitclient-ssh66311130260532338.key
Verifying host key using known hosts file, will automatically accept unseen keys
 > git ls-remote -h -t -- ssh://[email protected]/~ga95/container-build-example.git # timeout=10
Fetching upstream changes from origin
 > git config --get remote.origin.url # timeout=10
using GIT_SSH to set credentials SSH Key
[INFO] Currently running in a labeled security context
 > /usr/bin/chcon --type=ssh_home_t /var/jenkins_home/caches/git-3762d4a7f84a6f68b509e079c059f52c@tmp/jenkins-gitclient-ssh11876920945242995591.key
Verifying host key using known hosts file, will automatically accept unseen keys
 > git fetch --tags --force --progress --prune -- origin +refs/heads/*:refs/remotes/origin/* # timeout=10
Checking branches...
  Checking branch main
    Met criteria
Processed 1 branches (query complete)
Checking tags...
Processed 1 tags (query complete)
[JTE] Obtained Repository Jenkinsfile (show)
[JTE] Obtained Template (show)
[JTE] Loading Library pod_template (show)
[JTE] Loading Library docker (show)
[JTE] Template Primitives are overwriting Jenkins steps with the following names: (show)
[Pipeline] Start of Pipeline
[JTE][Step - pod_template/build_agent.call(CpsClosure2)]
[Pipeline] podTemplate
[Pipeline] {
[Pipeline] node
Created Pod: prod-ucp-ca--prod-devops-jenkinsagents-ns prod-devops-jenkinsagents-ns/cloud-engineering-container-build-test-main-14-9fnhz-qlw2-cnmv1
[Normal][prod-devops-jenkinsagents-ns/cloud-engineering-container-build-test-main-14-9fnhz-qlw2-cnmv1][Scheduled] Successfully assigned prod-devops-jenkinsagents-ns/cloud-engineering-container-build-test-main-14-9fnhz-qlw2-cnmv1 to sv0a3853
[Warning][prod-devops-jenkinsagents-ns/cloud-engineering-container-build-test-main-14-9fnhz-qlw2-cnmv1][DNSConfigForming] Search Line limits were exceeded, some search paths have been omitted, the applied search line is: prod-devops-jenkinsagents-ns.svc.cluster.local svc.cluster.local cluster.local mycompany.com nix.mycompany.com ca.mycompany
[Warning][prod-devops-jenkinsagents-ns/cloud-engineering-container-build-test-main-14-9fnhz-qlw2-cnmv1][DNSConfigForming] Search Line limits were exceeded, some search paths have been omitted, the applied search line is: prod-devops-jenkinsagents-ns.svc.cluster.local svc.cluster.local cluster.local mycompany.com nix.mycompany.com ca.mycompany
[Normal][prod-devops-jenkinsagents-ns/cloud-engineering-container-build-test-main-14-9fnhz-qlw2-cnmv1][Pulling] Pulling image "prod-dtr-ca.mycompany.com/devopstoolchain/jenkins-inbound-agent:4.7-1"
[Normal][prod-devops-jenkinsagents-ns/cloud-engineering-container-build-test-main-14-9fnhz-qlw2-cnmv1][Pulled] Successfully pulled image "prod-dtr-ca.mycompany.com/devopstoolchain/jenkins-inbound-agent:4.7-1" in 765.815003ms
[Normal][prod-devops-jenkinsagents-ns/cloud-engineering-container-build-test-main-14-9fnhz-qlw2-cnmv1][Created] Created container jnlp
[Normal][prod-devops-jenkinsagents-ns/cloud-engineering-container-build-test-main-14-9fnhz-qlw2-cnmv1][Started] Started container jnlp
[Warning][prod-devops-jenkinsagents-ns/cloud-engineering-container-build-test-main-14-9fnhz-qlw2-cnmv1][DNSConfigForming] Search Line limits were exceeded, some search paths have been omitted, the applied search line is: prod-devops-jenkinsagents-ns.svc.cluster.local svc.cluster.local cluster.local mycompany.com nix.mycompany.com ca.mycompany
Still waiting to schedule task
‘cloud-engineering-container-build-test-main-14-9fnhz-qlw2-cnmv1’ is offline
Agent cloud-engineering-container-build-test-main-14-9fnhz-qlw2-cnmv1 is provisioned from template cloud-engineering_container-build-test_main_14-9fnhz-qlw28
---
apiVersion: "v1"
kind: "Pod"
metadata:
  annotations:
    buildUrl: "https://jenkins-devops.mycompany.com/job/cloud-engineering/job/container-build-test/job/main/14/"
    runUrl: "job/cloud-engineering/job/container-build-test/job/main/14/"
  labels:
    jenkins: "slave"
    jenkins/label-digest: "709c8676c0b2106141674e9883f1688e439dbf1f"
    jenkins/label: "cloud-engineering_container-build-test_main_14-9fnhz"
  name: "cloud-engineering-container-build-test-main-14-9fnhz-qlw2-cnmv1"
spec:
  containers:
  - env:
    - name: "JENKINS_SECRET"
      value: "********"
    - name: "JENKINS_AGENT_NAME"
      value: "cloud-engineering-container-build-test-main-14-9fnhz-qlw2-cnmv1"
    - name: "JENKINS_WEB_SOCKET"
      value: "true"
    - name: "JENKINS_NAME"
      value: "cloud-engineering-container-build-test-main-14-9fnhz-qlw2-cnmv1"
    - name: "JENKINS_AGENT_WORKDIR"
      value: "/home/jenkins/agent"
    - name: "JENKINS_URL"
      value: "https://jenkins-devops.mycompany.com/"
    image: "prod-dtr-ca.mycompany.com/devopstoolchain/jenkins-inbound-agent:4.7-1"
    imagePullPolicy: "Always"
    name: "jnlp"
    resources:
      limits:
        memory: "512Mi"
        cpu: "600m"
      requests:
        memory: "256Mi"
        cpu: "300m"
    tty: false
    volumeMounts:
    - mountPath: "/home/jenkins/agent"
      name: "workspace-volume"
      readOnly: false
  nodeSelector:
    mycompany.com/node.network: "corp"
    mycompany.com/node.sdlc.prod: "true"
    mycompany.com/node.licensing.none: "true"
  restartPolicy: "Never"
  volumes:
  - emptyDir:
      medium: ""
    name: "workspace-volume"

Running on cloud-engineering-container-build-test-main-14-9fnhz-qlw2-cnmv1 in /home/jenkins/agent/workspace/eering_container-build-test_main

Relevant log output from tag build on the same commit with error

[JTE] Obtained Pipeline Configuration File 
[JTE] -- scm: git ssh://[email protected]/~ga95/container-image-build-pipeline.git
[JTE] -- file path: pipeline_config.groovy
[JTE] Pipeline Configuration Modifications 
[JTE] Configurations Added:
[JTE] - libraries.pod_template.cloud set to prod-ucp-ca--prod-devops-jenkinsagents-ns
[JTE] - keywords.development set to ^([Dd]evelop(ment|er|))|([Hh]otfix/.*)|([Ff]eature/.*)|([Pp][Rr]-.*)|([Rr]elease/.)|([Mm](aster|ain))$
[JTE] - keywords.release_candidate set to ^v(0|[1-9]\d*)\.(0|[1-9]\d*)\.(0|[1-9]\d*)(?:-rc\.(0|[1-9]\d*))$
[JTE] - keywords.release set to ^v(0|[1-9]\d*)\.(0|[1-9]\d*)\.(0|[1-9]\d*)$
[JTE] Configurations Deleted: None
[JTE] Configurations Changed: None
[JTE] Configurations Duplicated: None
[JTE] Configurations Ignored: None
[JTE] Subsequent May Merge:
[JTE] - libraries
[JTE] Subsequent May Override:
[JTE] - libraries.pod_template.cloud
 > git rev-parse --resolve-git-dir /var/jenkins_home/caches/git-3762d4a7f84a6f68b509e079c059f52c/.git # timeout=10
Setting origin to ssh://[email protected]/~ga95/container-build-example.git
 > git config remote.origin.url ssh://[email protected]/~ga95/container-build-example.git # timeout=10
Fetching & pruning origin...
Listing remote references...
 > git config --get remote.origin.url # timeout=10
 > git --version # timeout=10
 > git --version # 'git version 2.30.2'
using GIT_SSH to set credentials SSH Key
[INFO] Currently running in a labeled security context
 > /usr/bin/chcon --type=ssh_home_t /var/jenkins_home/caches/git-3762d4a7f84a6f68b509e079c059f52c@tmp/jenkins-gitclient-ssh10888401913846641147.key
Verifying host key using known hosts file, will automatically accept unseen keys
 > git ls-remote -h -t -- ssh://[email protected]/~ga95/container-build-example.git # timeout=10
Fetching upstream changes from origin
 > git config --get remote.origin.url # timeout=10
using GIT_SSH to set credentials SSH Key
[INFO] Currently running in a labeled security context
 > /usr/bin/chcon --type=ssh_home_t /var/jenkins_home/caches/git-3762d4a7f84a6f68b509e079c059f52c@tmp/jenkins-gitclient-ssh8892082546549811942.key
Verifying host key using known hosts file, will automatically accept unseen keys
 > git fetch --tags --force --progress --prune -- origin +refs/heads/*:refs/remotes/origin/* # timeout=10
Checking branches...
Processed 1 branches
Checking tags...
  Checking tag 0.1.0
    Met criteria
Processed 1 tags (query complete)
[JTE] FileSystemWrapperFactory: Unable to create SCMFileSystem: job: cloud-engineering/container-build-test/0.1.0, scm: null
 > git rev-parse --resolve-git-dir /var/jenkins_home/caches/git-3762d4a7f84a6f68b509e079c059f52c/.git # timeout=10
Setting origin to ssh://[email protected]/~ga95/container-build-example.git
 > git config remote.origin.url ssh://[email protected]/~ga95/container-build-example.git # timeout=10
Fetching & pruning origin...
Listing remote references...
 > git config --get remote.origin.url # timeout=10
 > git --version # timeout=10
 > git --version # 'git version 2.30.2'
using GIT_SSH to set credentials SSH Key
[INFO] Currently running in a labeled security context
 > /usr/bin/chcon --type=ssh_home_t /var/jenkins_home/caches/git-3762d4a7f84a6f68b509e079c059f52c@tmp/jenkins-gitclient-ssh16349028042143083238.key
Verifying host key using known hosts file, will automatically accept unseen keys
 > git ls-remote -h -t -- ssh://[email protected]/~ga95/container-build-example.git # timeout=10
Fetching upstream changes from origin
 > git config --get remote.origin.url # timeout=10
using GIT_SSH to set credentials SSH Key
[INFO] Currently running in a labeled security context
 > /usr/bin/chcon --type=ssh_home_t /var/jenkins_home/caches/git-3762d4a7f84a6f68b509e079c059f52c@tmp/jenkins-gitclient-ssh15851465492069649103.key
Verifying host key using known hosts file, will automatically accept unseen keys
 > git fetch --tags --force --progress --prune -- origin +refs/heads/*:refs/remotes/origin/* # timeout=10
Checking branches...
Processed 1 branches
Checking tags...
  Checking tag 0.1.0
    Met criteria
Processed 1 tags (query complete)
[JTE] FileSystemWrapperFactory: Unable to create SCMFileSystem: job: cloud-engineering/container-build-test/0.1.0, scm: null
[JTE] Obtained Template 
[JTE] -- scm: git ssh://[email protected]/~ga95/container-image-build-pipeline.git
[JTE] -- file path: Jenkinsfile
[JTE] Loading Library pod_template 
[JTE] -- scm: git ssh://[email protected]/ce/jte-libraries.git
[JTE] Template Primitives are overwriting Jenkins steps with the following names: 
[JTE]   1. release
[Pipeline] Start of Pipeline
[JTE][Step - pod_template/build_agent.call(CpsClosure2)]
[Pipeline] podTemplate
[Pipeline] {
[Pipeline] node
Created Pod: prod-ucp-ca--prod-devops-jenkinsagents-ns prod-devops-jenkinsagents-ns/cloud-engineering-container-build-test-0-1-0-2-pwkbn-8850-dt5fv
[Normal][prod-devops-jenkinsagents-ns/cloud-engineering-container-build-test-0-1-0-2-pwkbn-8850-dt5fv][Scheduled] Successfully assigned prod-devops-jenkinsagents-ns/cloud-engineering-container-build-test-0-1-0-2-pwkbn-8850-dt5fv to sv0a3854
[Warning][prod-devops-jenkinsagents-ns/cloud-engineering-container-build-test-0-1-0-2-pwkbn-8850-dt5fv][DNSConfigForming] Search Line limits were exceeded, some search paths have been omitted, the applied search line is: prod-devops-jenkinsagents-ns.svc.cluster.local svc.cluster.local cluster.local mycompany.com nix.mycompany.com ca.mycompany
[Warning][prod-devops-jenkinsagents-ns/cloud-engineering-container-build-test-0-1-0-2-pwkbn-8850-dt5fv][DNSConfigForming] Search Line limits were exceeded, some search paths have been omitted, the applied search line is: prod-devops-jenkinsagents-ns.svc.cluster.local svc.cluster.local cluster.local mycompany.com nix.mycompany.com ca.mycompany
[Normal][prod-devops-jenkinsagents-ns/cloud-engineering-container-build-test-0-1-0-2-pwkbn-8850-dt5fv][Pulling] Pulling image "prod-dtr-ca.mycompany.com/devopstoolchain/jenkins-inbound-agent:4.7-1"
[Normal][prod-devops-jenkinsagents-ns/cloud-engineering-container-build-test-0-1-0-2-pwkbn-8850-dt5fv][Pulled] Successfully pulled image "prod-dtr-ca.mycompany.com/devopstoolchain/jenkins-inbound-agent:4.7-1" in 432.418675ms
[Normal][prod-devops-jenkinsagents-ns/cloud-engineering-container-build-test-0-1-0-2-pwkbn-8850-dt5fv][Created] Created container jnlp
[Normal][prod-devops-jenkinsagents-ns/cloud-engineering-container-build-test-0-1-0-2-pwkbn-8850-dt5fv][Started] Started container jnlp
Still waiting to schedule task
‘cloud-engineering-container-build-test-0-1-0-2-pwkbn-8850-dt5fv’ is offline
Agent cloud-engineering-container-build-test-0-1-0-2-pwkbn-8850-dt5fv is provisioned from template cloud-engineering_container-build-test_0_1_0_2-pwkbn-88502
---
apiVersion: "v1"
kind: "Pod"
metadata:
  annotations:
    buildUrl: "https://jenkins-devops.mycompany.com/job/cloud-engineering/job/container-build-test/job/0.1.0/2/"
    runUrl: "job/cloud-engineering/job/container-build-test/job/0.1.0/2/"
  labels:
    jenkins: "slave"
    jenkins/label-digest: "718441a298ff59c9867d4b547d3880e78bd7e862"
    jenkins/label: "cloud-engineering_container-build-test_0_1_0_2-pwkbn"
  name: "cloud-engineering-container-build-test-0-1-0-2-pwkbn-8850-dt5fv"
spec:
  containers:
  - env:
    - name: "JENKINS_SECRET"
      value: "********"
    - name: "JENKINS_AGENT_NAME"
      value: "cloud-engineering-container-build-test-0-1-0-2-pwkbn-8850-dt5fv"
    - name: "JENKINS_WEB_SOCKET"
      value: "true"
    - name: "JENKINS_NAME"
      value: "cloud-engineering-container-build-test-0-1-0-2-pwkbn-8850-dt5fv"
    - name: "JENKINS_AGENT_WORKDIR"
      value: "/home/jenkins/agent"
    - name: "JENKINS_URL"
      value: "https://jenkins-devops.mycompany.com/"
    image: "prod-dtr-ca.mycompany.com/devopstoolchain/jenkins-inbound-agent:4.7-1"
    imagePullPolicy: "Always"
    name: "jnlp"
    resources:
      limits:
        memory: "512Mi"
        cpu: "600m"
      requests:
        memory: "256Mi"
        cpu: "300m"
    tty: false
    volumeMounts:
    - mountPath: "/home/jenkins/agent"
      name: "workspace-volume"
      readOnly: false
  nodeSelector:
    mycompany.com/node.network: "corp"
    mycompany.com/node.sdlc.prod: "true"
    mycompany.com/node.licensing.none: "true"
  restartPolicy: "Never"
  volumes:
  - emptyDir:
      medium: ""
    name: "workspace-volume"

Running on cloud-engineering-container-build-test-0-1-0-2-pwkbn-8850-dt5fv in /home/jenkins/agent/workspace/ering_container-build-test_0.1.0
[Pipeline] {
 > git rev-parse --resolve-git-dir /var/jenkins_home/caches/git-3762d4a7f84a6f68b509e079c059f52c/.git # timeout=10
Setting origin to ssh://[email protected]/~ga95/container-build-example.git
 > git config remote.origin.url ssh://[email protected]/~ga95/container-build-example.git # timeout=10
Fetching & pruning origin...
Listing remote references...
 > git config --get remote.origin.url # timeout=10
 > git --version # timeout=10
 > git --version # 'git version 2.30.2'
using GIT_SSH to set credentials SSH Key
[INFO] Currently running in a labeled security context
 > /usr/bin/chcon --type=ssh_home_t /var/jenkins_home/caches/git-3762d4a7f84a6f68b509e079c059f52c@tmp/jenkins-gitclient-ssh567020758629055091.key
Verifying host key using known hosts file, will automatically accept unseen keys
 > git ls-remote -h -t -- ssh://[email protected]/~ga95/container-build-example.git # timeout=10
Fetching upstream changes from origin
 > git config --get remote.origin.url # timeout=10
using GIT_SSH to set credentials SSH Key
[INFO] Currently running in a labeled security context
 > /usr/bin/chcon --type=ssh_home_t /var/jenkins_home/caches/git-3762d4a7f84a6f68b509e079c059f52c@tmp/jenkins-gitclient-ssh11197568816887510643.key
Verifying host key using known hosts file, will automatically accept unseen keys
 > git fetch --tags --force --progress --prune -- origin +refs/heads/*:refs/remotes/origin/* # timeout=10
Checking branches...
Processed 1 branches
Checking tags...
  Checking tag 0.1.0
    Met criteria
Processed 1 tags (query complete)
[Pipeline] checkout
The recommended git tool is: NONE
using credential gitget-ssh
Cloning the remote Git repository
Cloning repository ssh://[email protected]/~ga95/container-build-example.git
 > git init /home/jenkins/agent/workspace/ering_container-build-test_0.1.0 # timeout=10
Avoid second fetch
Checking out Revision fb0119d02d9c4147767bea965d193ac1bfe9bfeb (0.1.0)
Fetching upstream changes from ssh://[email protected]/~ga95/container-build-example.git
 > git --version # timeout=10
 > git --version # 'git version 2.20.1'
using GIT_SSH to set credentials SSH Key
[INFO] Currently running in a labeled security context
 > /usr/bin/chcon --type=ssh_home_t /home/jenkins/agent/workspace/ering_container-build-test_0.1.0@tmp/jenkins-gitclient-ssh4811510267016235309.key
Verifying host key using known hosts file, will automatically accept unseen keys
 > git fetch --tags --force --progress -- ssh://[email protected]/~ga95/container-build-example.git +refs/heads/*:refs/remotes/origin/* # timeout=10
 > git config remote.origin.url ssh://[email protected]/~ga95/container-build-example.git # timeout=10
 > git config --add remote.origin.fetch +refs/heads/*:refs/remotes/origin/* # timeout=10
 > git config core.sparsecheckout # timeout=10
 > git checkout -f fb0119d02d9c4147767bea965d193ac1bfe9bfeb # timeout=10
Commit message: "Initial commit"
 > git rev-list --no-walk fb0119d02d9c4147767bea965d193ac1bfe9bfeb # timeout=10
 > git remote # timeout=10
 > git submodule init # timeout=10
 > git submodule sync # timeout=10
 > git config --get remote.origin.url # timeout=10
 > git submodule init # timeout=10
 > git config -f .gitmodules --get-regexp ^submodule\.(.+)\.url # timeout=10
 > git config --get submodule.certificates.url # timeout=10
 > git config -f .gitmodules --get submodule.certificates.path # timeout=10
Posting build status of INPROGRESS to Bitbucket Prod for commit id [fb0119d02d9c4147767bea965d193ac1bfe9bfeb] and ref 'refs/heads/0.1.0'
[Pipeline] }
[Pipeline] // node
[Pipeline] }
[Pipeline] // podTemplate
 > git submodule update --init --recursive certificates # timeout=10
[Pipeline] End of Pipeline
java.lang.NoSuchMethodError: No such DSL method 'api_image_build' found among steps [ArtifactoryGradleBuild, MavenDescriptorStep, addInteractivePromotion, ansibleTower, ansibleTowerProjectRevision, ansibleTowerProjectSync, archive, artifactoryBuildTrigger, artifactoryDistributeBuild,

Steps to Reproduce

  1. Successfully build a branch build.
  2. Add git tag on repository on the same commit of the successful build.
  3. Run tag build.
  4. Job failed to find pipeline_config.groovy to load and merge the necessary libraries.
@e88z4 e88z4 added the bug Something isn't working label Sep 26, 2022
@e88z4
Copy link
Author

e88z4 commented Sep 26, 2022

I found an interesting JTE log only from from the tag build.

[JTE] FileSystemWrapperFactory: Unable to create SCMFileSystem: job: cloud-engineering/container-build-test/0.1.0, scm: null

@steven-terrana
Copy link

steven-terrana commented Sep 26, 2022

This is actually a bug / missing feature with BitBucket.
JTE uses the Jenkins SCM API 2.0 to do a lightweight checkout of the code.
BitBucket does not support this for Pull Requests.

See:

Path Forward:

  • JTE could fall back to a "heavy" checkout (actually cloning the repository)
  • JTE could implement BitBucket specific logic (ew..) that creates an SCMFileSystem based on the source branch of the Pull Request

In either case, because there's no actual git ref for the PR - so you'd have to approximate what code to check out. Assuming the target branch has been merged into the source branch, there'll be no impact.

Changing this to an enhancement instead of a bug. Nothing wrong with JTE here. We'd have to write code to make up for BitBucket's inadequacies.

@steven-terrana steven-terrana added enhancement New feature or request and removed bug Something isn't working labels Sep 26, 2022
@e88z4
Copy link
Author

e88z4 commented Sep 26, 2022

Hi @steven-terrana ,

The build is not a pull request build. This build is a tag build instead.

@rayvincent2 rayvincent2 linked a pull request Apr 30, 2023 that will close this issue
8 tasks
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

Successfully merging a pull request may close this issue.

2 participants