added secret credentials

This commit is contained in:
VSAzima 2021-04-30 18:18:18 +04:00
parent daf27112d5
commit 40bfc20fe8

3
Jenkinsfile vendored
View file

@ -34,10 +34,13 @@ pipeline {
stage('build') {
steps {
script {
withCredentials([usernameColonPassword(credentialsId: 'ngx', variable: 'ROOT_CERT')]) {
docker.image('maven:3.8.1-jdk-8').inside("--network=jenkins_default") {
sh 'cp $ROOT_CERT /usr/local/share/ca-certificates/ && update-ca-certificates'
sh 'mvn -B clean package'
}
}
}
}
}
stage("publish to nexus") {