Update Jenkinsfile

This commit is contained in:
Brady-Malott 2023-02-17 17:34:05 -05:00 committed by GitHub
parent dd7557f1ba
commit 35f6ed607a
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 9 additions and 1 deletions

10
Jenkinsfile vendored
View File

@ -7,7 +7,15 @@ pipeline {
sh 'docker build -t microblog:latest .'
}
}
stage("Hello To Discord") {
stage('Deploy') {
steps {
// Stop running microblog container
sh 'docker stop $(docker ps -q --filter ancestor=microblog:latest)'
// Deploy new container
sh 'docker run -d -p 5000:5000 microblog:latest
}
}
stage('Hello To Discord') {
steps {
echo ' Test to Discord'
discordSend description: '', footer: '', image: '', link: 'http://3.91.14.163:8080', result: '', scmWebUrl: '', thumbnail: '', title: