From 565a7dbf2a6e5ff9ec8d8aefc67ed98b613040ca Mon Sep 17 00:00:00 2001 From: Aleksa <59575151+Aleksa-Vig@users.noreply.github.com> Date: Fri, 17 Feb 2023 19:34:14 -0500 Subject: [PATCH] Update Jenkinsfile --- Jenkinsfile | 19 ++++++++++++++++++- 1 file changed, 18 insertions(+), 1 deletion(-) diff --git a/Jenkinsfile b/Jenkinsfile index 052383b..2d78935 100644 --- a/Jenkinsfile +++ b/Jenkinsfile @@ -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' + } + } }