Update Jenkinsfile

This commit is contained in:
Aleksa 2023-02-17 19:34:14 -05:00 committed by GitHub
parent 0d168ebf7e
commit 565a7dbf2a
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 18 additions and 1 deletions

19
Jenkinsfile vendored
View File

@ -16,12 +16,29 @@ pipeline {
sh 'docker run --name microblog -d -p 5000:5000 --rm microblog:latest'
}
}
stage('Selenium Tests') {
steps {
sh 'python3 selenium.py'
}
}
stage('Hello To Discord') {
steps {
echo ' Test to Discord'
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 {
echo 'Pipeline has completed'
discordSend description: '', footer: '', image: '', link: 'http://3.91.14.163:8080', result: '', scmWebUrl: '', thumbnail: '', title:
'Pipeline has completed ✅', webhookURL: 'https://discord.com/api/webhooks/1075879011667955872/Nk0gmKZkrISEs-hru-HjtzzgezWweABCdPsOKGIzkmj5xMcqKC3m1-dx7GZSu0yURAOo'
}
failure {
echo 'Something has failed!'
discordSend description: 'Pipeline has failed!', footer: '', image: '', link: 'http://3.91.14.163:8080', result: '', scmWebUrl: '', thumbnail: '', title:
'Pipeline failure ❌', webhookURL: 'https://discord.com/api/webhooks/1075879011667955872/Nk0gmKZkrISEs-hru-HjtzzgezWweABCdPsOKGIzkmj5xMcqKC3m1-dx7GZSu0yURAOo'
}
}
}