testing envs

This commit is contained in:
Milan Petrovic 2025-06-11 14:18:01 +02:00
parent 1a17fa7f16
commit ab32a205cd

18
Jenkinsfile vendored
View file

@ -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') {
steps {
script {