Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
12 changes: 11 additions & 1 deletion Jenkinsfile-online
Original file line number Diff line number Diff line change
Expand Up @@ -39,15 +39,25 @@ spec:
checkout(scm)
}
}
stage('Build') {
stage('Build and push') {
steps {
container ('docker'){
sh 'docker build -t mrjiangguoqing:v2.0 .'
sh '''
echo "you did it!!!!!!! yes!!"
'''
sh 'docker login '
sh 'docker push '
}
}
}
stage('deploy') {
steps {
container ('kubectl'){
sh 'kubectl delete -f web.yaml'
sh 'kubectl apply -f web.yaml'
}
}
}
}
}
Empty file added feature-j
Empty file.
Empty file added txt
Empty file.