-
Notifications
You must be signed in to change notification settings - Fork 1
/
Jenkinsfile
34 lines (33 loc) · 977 Bytes
/
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
32
33
34
pipeline {
agent {
label 'linux'
}
stages {
stage('Install on Linux') {
agent {
label 'linux'
}
steps {
sh 'python3 -m venv env'
sh 'source env/bin/activate'
sh 'python3 -m pip install -r requirements.txt'
sh 'python3 -m pip install nuitka'
}
}
stage('Compile on Linux') {
agent {
label 'linux'
}
steps {
sh './compile.sh'
archiveArtifacts 'DungeonCli_Linux.zip'
withCredentials([string(credentialsId: 'discord-webhook', variable: 'SECRET')]) { //set SECRET with the credential content
discordSend description: "Jenkins Pipeline Build", footer: "DungeonCli",
link: env.BUILD_URL, result: currentBuild.currentResult, title: JOB_NAME,
thumbnail: "https://raw.githubusercontent.com/daniel071/DungeonCli/master/Images/Logos/nightlyTerminal.png",
webhookURL: "${SECRET}"
}
}
}
}
}