Update Jenkinsfile
This commit is contained in:
parent
2e3af32b20
commit
47ee375c10
|
@ -10,7 +10,6 @@ pipeline {
|
||||||
stage('Deploy') {
|
stage('Deploy') {
|
||||||
steps {
|
steps {
|
||||||
// Stop running microblog container
|
// Stop running microblog container
|
||||||
//sh 'if [[ $(docker ps -q --filter ancestor=microblog:latest | wc -l) != 0 ]]; then docker stop $(docker ps -q --filter ancestor=microblog:latest) fi'
|
|
||||||
sh 'docker stop $(docker ps -q --filter ancestor=microblog:latest) || true && docker rm $(docker ps -q --filter ancestor=microblog:latest) || true'
|
sh 'docker stop $(docker ps -q --filter ancestor=microblog:latest) || true && docker rm $(docker ps -q --filter ancestor=microblog:latest) || true'
|
||||||
// Deploy new container
|
// Deploy new container
|
||||||
sh 'docker run --name microblog -d -p 5000:5000 --rm microblog:latest'
|
sh 'docker run --name microblog -d -p 5000:5000 --rm microblog:latest'
|
||||||
|
@ -22,12 +21,6 @@ pipeline {
|
||||||
//sh 'python3 selenium.py'
|
//sh 'python3 selenium.py'
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
steps {
|
|
||||||
echo 'PipelineComplete'
|
|
||||||
discordSend description: '', footer: '', image: '', link: 'http://3.91.14.163:8080', result: '', scmWebUrl: '', thumbnail: '', title:
|
|
||||||
'HelloToDiscordTest', webhookURL: 'https://discord.com/api/webhooks/1075879011667955872/Nk0gmKZkrISEs-hru-HjtzzgezWweABCdPsOKGIzkmj5xMcqKC3m1-dx7GZSu0yURAOo'
|
|
||||||
}
|
|
||||||
}
|
|
||||||
}
|
}
|
||||||
post {
|
post {
|
||||||
success {
|
success {
|
||||||
|
|
Loading…
Reference in New Issue