I found a way with "withCredentials" function ...
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}","sc
Hello,
In the jenkins documentation I found this way to specify the credentials in
marathon deployment:
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