Thanks for your reply. I am an admin so I should be able to see everything. Where should I look for the credentials?
All our conventional jobs use the following credential seen on the job configuration page:
![]()
Where should I look for the corresponding credentialId?
Best regards
David
Click here to report this email as spam.
Thanks, I see it now. The credential does have a readable name. Can I assign that name to credentialsId or should it be assigned to a different property?
Hi Thomas
The credentialsId is now working fine for me, thanks for your help.
However, my svn checkout involves an external, which is not appearing in the workspace. I guess I need to specify ‘additional credentials’. I tried:
stage('Checkout') {
checkout([$class: 'SubversionSCM',
additionalCredentials: [credentialsId: '086c0d1a-15e7-4cea-9702-7528ac021fab'],
excludedCommitMessages: '',
excludedRegions: '',
excludedRevprop: '',
excludedUsers: 'buildbot',
filterChangelog: false,
ignoreDirPropChanges: false,
includedRegions: '',
locations: [[credentialsId: '086c0d1a-15e7-4cea-9702-7528ac021fab',
depthOption: 'infinity',
ignoreExternalsOption: true,
local: '.',
remote: "https://172.29.68.12/subversion/Leda/trunk/"]],
workspaceUpdater: [$class: 'UpdateUpdater']])
}
But that failed. I think my setting for additionalCredentials is wrong. Can you help me correct the syntax please?
The snippet generator has solved this for me:
additionalCredentials: [[credentialsId: '<snip>', realm: '']],
From: David Aldrich
Sent: 20 April 2017 16:29
To: 'thomas....@teamaol.com' <thomas....@teamaol.com>; Jenkins Users <jenkins...@googlegroups.com>
Subject: RE: How to specify svn credentialsId in pipeline job?
Hi Thomas
The credentialsId is now working fine for me, thanks for your help.
However, my svn checkout involves an external, which is not appearing in the workspace. I guess I need to specify ‘additional credentials’. I tried:
stage('Checkout') {
checkout([$class: 'SubversionSCM',
additionalCredentials: [credentialsId: '086c0d1a-15e7-4cea-9702-7528ac021fab'],
excludedCommitMessages: '',
excludedRegions: '',
excludedRevprop: '',
excludedUsers: 'buildbot',
filterChangelog: false,
ignoreDirPropChanges: false,
includedRegions: '',
locations: [[credentialsId: '086c0d1a-15e7-4cea-9702-7528ac021fab',
depthOption: 'infinity',
ignoreExternalsOption: true,
local: '.',
remote: "https://172.29.68.12/subversion/Leda/trunk/"]],
workspaceUpdater: [$class: 'UpdateUpdater']])
}
But that failed. I think my setting for additionalCredentials is wrong. Can you help me correct the syntax please?
Best regards