Update Jenkinsfile

This commit is contained in:
Manraj 2023-02-17 20:11:49 -05:00 committed by GitHub
parent 2e3af32b20
commit 47ee375c10
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 0 additions and 7 deletions

7
Jenkinsfile vendored
View File

@ -10,7 +10,6 @@ pipeline {
stage('Deploy') {
steps {
// 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'
// Deploy new container
sh 'docker run --name microblog -d -p 5000:5000 --rm microblog:latest'
@ -22,12 +21,6 @@ pipeline {
//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 {
success {