Open uttarwar-yogesh opened 4 days ago
We are currently hitting the same error when using Bitbucket PPR in conjunction with Jenkins shared libraries.
We have configured our pipeline to skip default checkouts, but something is trying to checkout our shared library (the only git repository checked out within the workspace of our Jenkins pipeline) using BPPR commit hash before switching repositories.
This is the minimal configuration to reproduce the error
@Library('my-shared-library') _
properties([
pipelineTriggers([
[
$class: 'BitBucketPPRTrigger',
triggers: [
[
$class: 'BitBucketPPRRepositoryTriggerFilter',
actionFilter: [
$class: 'BitBucketPPRRepositoryPushActionFilter',
triggerAlsoIfNothingChanged: true,
triggerAlsoIfTagPush: false,
allowedBranches: 'master',
isToApprove: true
]
]
]
]
])
])
pipeline {
agent any
options {
skipDefaultCheckout()
}
stages {
stage('Checkout source') {
steps {
checkout([
$class: 'GitSCM',
branches: [[name: 'master']],
userRemoteConfigs: [[
url: "git@bitbucket.org:my-company/repo-test.git" ]]
])
}
}
stage('Test') {
steps {
script {
println "Successful build!"
}
}
}
}
}
Downgrading to version 3.0.3 of the plugin fixed our issues.
Same here
stderr: fatal: ambiguous argument '39d827632d35^{commit}': unknown revision or path not in the working tree. Use '--' to separate paths from revisions, like this: 'git [...] -- [...]'