-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathjenkinsfile.txt
29 lines (27 loc) · 1006 Bytes
/
jenkinsfile.txt
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
node {
withEnv(['PATH+DOTNET=/home/pi/.dotnet']) {
stage('Git') {
git branch: 'main', credentialsId: 'dd6144ac-2d56-43aa-be82-7337937cce5c', url: 'https://github.com/Hantick/DynamicVoiceChannelBOT.git'
}
stage('Nuget restore')
{
sh 'dotnet restore DynamicVoiceChannelBOT.sln'
}
stage('Clean')
{
sh 'dotnet clean DynamicVoiceChannelBOT.sln --configuration Release'
}
stage('Build')
{
sh 'dotnet build DynamicVoiceChannelBOT.sln --configuration Release --no-restore'
}
stage('Publish')
{
sh 'dotnet publish DynamicVoiceChannelBOT.sln --configuration Release --no-restore'
}
stage('Discord Info')
{
discordSend description: 'Builded successfully', footer: '', image: '', link: '', result: 'SUCCESS', thumbnail: '', title: 'DynamicChannels', webhookURL: 'https://discord.com/api/webhooks/802619082133602354/gARr07gqi3sRME6jEkKmGLe3d5hKfKsFmLWVCfH0C6o-BfQz_1lW20wqUuwEp1cpl1_d'
}
}
}