I setup the job configuration in the UI for a multibranch pipeline. I Put in the bitbucket credentials, etc.
My jenkinsfile looks like this:
stages {
stage(‘source’) {
steps {
git branch: BRANCH_NAME, credentialsId: ‘myuser’, url: ‘hXtps://svn.example .com/bitbucket/scm/code/code.git’
}
}
The Build Summary page shows:
Changes
Update Jenkinsfile (details / bitbucketserver)Changes
Update Jenkinsfile (details)Branch event at 1:50:58 PM on Jan 17, 2024
Revision: XXX
Repository: hXtps://myuser@svn.example .com/bitbucket/scm/code/code.gitrefs/remotes/origin/X
SCM: git hXtps://myuser@svn.example .com/bitbucket/scm/code/code.git
Commits since last build: 1 Latest commit: X
Revision: XXX
Repository: hXtps://svn.example .com/bitbucket/scm/code/code.gitrefs/remotes/origin/X
SCM: git hXtps://svn.example .com/bitbucket/scm/code/code.git
Commits since last build: 1 Latest commit: X
Why is it duplicated?