mirror of
https://github.com/spring-projects/spring-petclinic.git
synced 2025-07-19 22:15:50 +00:00
testing envs
This commit is contained in:
parent
1a17fa7f16
commit
ab32a205cd
1 changed files with 18 additions and 0 deletions
18
Jenkinsfile
vendored
18
Jenkinsfile
vendored
|
@ -23,6 +23,24 @@ pipeline {
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
stage('Cred'){
|
||||||
|
steps {
|
||||||
|
withCredentials([usernamePassword(
|
||||||
|
credentialsId: DOCKERHUB_CREDS,
|
||||||
|
//usernameVariable: '580b959d-d40a-422f-a3d7-cf11b2ec7a4cUsername'
|
||||||
|
// passwordVariable: '580b959d-d40a-422f-a3d7-cf11b2ec7a4cUsername'
|
||||||
|
usernameVariable: 'DOCKER_USER',
|
||||||
|
// passwordVariable: 'DOCKER_PASS'
|
||||||
|
)]) {
|
||||||
|
echo "Logging in to Docker Hub..."
|
||||||
|
sh "echo ${env.DOCKER_USER}"
|
||||||
|
// echo "Pushing Docker image to ${imageTag}"
|
||||||
|
// sh "docker push ${imageTag}"
|
||||||
|
}
|
||||||
|
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
stage('Build') {
|
stage('Build') {
|
||||||
steps {
|
steps {
|
||||||
script {
|
script {
|
||||||
|
|
Loading…
Reference in a new issue