Commit 3fc2f7a2 authored by FabiusE's avatar FabiusE

Changed registry

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