-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathJenkinsFile
More file actions
33 lines (29 loc) · 737 Bytes
/
Copy pathJenkinsFile
File metadata and controls
33 lines (29 loc) · 737 Bytes
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
pipeline{
agent any
environment {
dotnet = '/usr/bin/dotnet'
}
stages{
stage('checkout')
{
steps{
git credentialsId: 'Krunal GIt hub User ', url: 'https://github.com/krunalmscit/devOpsNetCore.git', branch: 'master'
}
}
stage('Restore Packages') {
steps {
sh "dotnet restore"
}
}
stage('Clean') {
steps {
sh "dotnet clean"
}
}
stage('Build') {
steps {
sh "dotnet build --configuration Release"
}
}
}
}