-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathJenkinsfile
31 lines (27 loc) · 1.24 KB
/
Jenkinsfile
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
pipeline {
agent {
label "beta"
}
environment{
LOGIN_SERVER = "beta"
WEBHOOK_URL = credentials('Beta_Discord')
}
stages {
stage("fetch"){
steps{
echo "========Executing Fetch========"
git branch: "main", url: "https://[email protected]/CMPLR-Technologies/CMPLR-Technologies.Mobile.Android-Native/_git/CMPLR-Technologies.Mobile.Android-Native"
}
post{
success{
echo "=======fetch executed successfully========"
discordSend description: "Jenkins Pipeline Build", thumbnail: "https://jenkins.io/images/logos/ninja/256.png",footer: "Fetch is successfull", result: currentBuild.currentResult, title: JOB_NAME, webhookURL: WEBHOOK_URL
}
failure{
echo "========fetch execution failed========"
discordSend description: "Jenkins Pipeline Build", thumbnail: "https://jenkins.io/images/logos/ninja/256.png" ,footer: "Fetch execution failed", result: currentBuild.currentResult, title: JOB_NAME, webhookURL: WEBHOOK_URL
}
}
}
}
}