You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I am using jenkins version 2.303.3 and git parameter plugin version 0.9.14, and setup jenkins pipeline as below, then committed the pipeline code to "git@repository_b.git' :
After successfully built the jenkins job, I found the jenkins pipeline parameters "branchName" , was load branches from the jenkins pipeline repository (repository_b.git), instead of the correct one(git@repository_a.git), isn't the repository should be used from the env.gitUrl repository in the parameters section ?
Please help.
The text was updated successfully, but these errors were encountered:
Hello everyone,
I am using jenkins version 2.303.3 and git parameter plugin version 0.9.14, and setup jenkins pipeline as below, then committed the pipeline code to "git@repository_b.git' :
###################
pipeline {
agent {
label "any"
}
environment {
gitUrl = 'git@repository_a.git'
}
parameters {
gitParameter name: 'branchName',
description: '',
type: 'PT_BRANCH_TAG',
defaultValue: 'origin/master',
branch: '',
branchFilter: '.',
tagFilter: '',
sortMode: 'NONE',
selectedValue: 'NONE',
useRepository: env.gitUrl,
quickFilterEnabled: 'false',
listSize: '10'
}
}
###################
After successfully built the jenkins job, I found the jenkins pipeline parameters "branchName" , was load branches from the jenkins pipeline repository (repository_b.git), instead of the correct one(git@repository_a.git), isn't the repository should be used from the env.gitUrl repository in the parameters section ?
Please help.
The text was updated successfully, but these errors were encountered: