Commit 3fc2f7a2 authored by FabiusE's avatar FabiusE

Changed registry

parent 60bb5846
pipeline { node {
agent {
kubernetes {
label 'jenkins-jenkins-slave'
defaultContainer 'jnlp'
}
}
}
{
def app def app
stage('Clone repository'){ stage('Clone repository'){
checkout scm checkout scm
...@@ -26,9 +18,14 @@ pipeline { ...@@ -26,9 +18,14 @@ pipeline {
docker.withRegistry('','docker-hub-credentials'){ docker.withRegistry('','docker-hub-credentials'){
app.push("latest") app.push("latest")
} }
} }
stage ('Deploy') { stage('Deploy') {
sh 'echo kubectl get nodes' kubernetes {
} steps {
} 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