Some checks failed
perso/htpasswd/master There was a failure building this commit
29 lines
455 B
Groovy
29 lines
455 B
Groovy
pipeline {
|
|
|
|
environment {
|
|
registry = 'jcabillot/htpasswd'
|
|
registryCredential = 'dockerhub_jcabillot'
|
|
}
|
|
|
|
agent any
|
|
|
|
stages {
|
|
stage('Building image') {
|
|
steps{
|
|
script {
|
|
docker.build registry + ":master"
|
|
}
|
|
}
|
|
}
|
|
stage('Deploy Image') {
|
|
steps{
|
|
script {
|
|
docker.withRegistry('', registryCredential) {
|
|
dockerImage.push()
|
|
}
|
|
}
|
|
}
|
|
}
|
|
}
|
|
}
|