Commit 90cc27cb authored by FabiusE's avatar FabiusE

Changed registry

parent bc7898d8
......@@ -3,32 +3,30 @@ pipeline {
kubernetes {
label 'jenkins-jenkins-slave'
defaultContainer 'jnlp'
node {
def app
stage('Clone repository'){
checkout scm
}
def app
stage('Clone repository'){
checkout scm
}
stage('Build image'){
app = docker.build("fabiuse/reactdocker")
}
stage('Build image'){
app = docker.build("fabiuse/reactdocker")
}
stage('Test image'){
app.inside {
sh 'echo "Tests passed"'
}
stage('Test image'){
app.inside {
sh 'echo "Tests passed"'
}
stage('Push image'){
docker.withRegistry('','docker-hub-credentials'){
app.push("latest")
}
}
stage ('Deploy') {
sh 'echo kubectl get nodes'
}
}
stage('Push image'){
docker.withRegistry('','docker-hub-credentials'){
app.push("latest")
}
}
stage ('Deploy') {
sh 'echo kubectl get nodes'
}
}
}
}
\ No newline at end of file
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment