credentialsId: '{"uid":"jenkins","login_endpoint":"https://leader.mesos/acs/api/v1/auth/login","scheme":"RS256","private_key":"-----BEGIN RSA PRIVATE KEY-----\nMIIEpAI..."}'
It works fine but ... is it possible to store these credentials in the credentials part of jenkins and use a credential id in the pipeline?
Thanks.
Regards.
withCredentials([
string(credentialsId: 'XX-XX-XX-XX-XX-XX', variable: 'DCOS_PRIVATE_KEY')
]) {
marathon(
url: 'http://XX.XX.XX.XX:8080',
forceUpdate: false,
credentialsId: '{"uid":"cicd","login_endpoint":"${env.DCOS_ENDPOINT}","scheme":"RS256","private_key":"$DCOS_PRIVATE_KEY"}',
filename: 'Marathon.json'
)
}