not sure if it helps There is a known issue with the integration of Jenkins and Bitbucket v7 that if the PR is not having any changes to the Jenkinsfile, the Jenkins will fall back to heavyweight checkout.
On Wednesday, 24 February 2021 at 21:55:10 UTC+5:30 Martin Schmude wrote: > Hello all, > I am experiencing the following issue. > I have a pipeline job (not multibranch). In the job configuration the > Jenkinsfile is checked out from git. The checkout is not lightweight (there > is a tick "Lightweight checkout", which is not set). > A node job parameter is configured. > When starting the job the git checkout of the Jenkinsfile fails with > > Caused by: hudson.plugins.git.GitException: Command "git fetch --tags > --progress -- https://gitlab.XXX.com/project.git > <https://gitlab.consulting.sltc.com/appmod/qef/playground/kms.git> > +refs/heads/*:refs/remotes/origin/*" returned status code 128: > ... > fatal: could not read Username for 'https://gitlab.XXX.com > <https://gitlab.consulting.sltc.com/>': terminal prompts disabled > > Note that the Jenkinsfile has not started to be executed at that moment, > since Jenkins failed to check it out. > The error does not occur if > > - if the selected node is master, or > - if the "Lightweight checkout" is selected. > > It does also not occur if no node parameter is configured at all. > > Is this expected behaviour or an bug? Should I file a ticket in > https://issues.jenkins.io? I haven't found a ticket there that exactly > matches my issue. > This > https://groups.google.com/g/jenkinsci-users/c/hg4OUmlS9T8/m/Lg8UYopCBAAJ > looks related. But the root cause there was a file permissions issue, > which is surely not the case in my setup. > > My Jenkins instance is 2.222.4, running in a container derived from the > Jenkins base image jenkins/jenkins:2.222.4. > -- You received this message because you are subscribed to the Google Groups "Jenkins Users" group. To unsubscribe from this group and stop receiving emails from it, send an email to jenkinsci-users+unsubscr...@googlegroups.com. To view this discussion on the web visit https://groups.google.com/d/msgid/jenkinsci-users/00f008cb-097c-40f1-9970-4adef67125b7n%40googlegroups.com.