-
Notifications
You must be signed in to change notification settings - Fork 0
/
Jenkinsfile
45 lines (41 loc) · 825 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
35
36
37
38
39
40
41
42
43
44
45
pipeline {
agent any
/*
environment {
dotnet = 'C:\Program Files\dotnet\dotnet.exe'
}*/
stages {
stage('Checkout') {
steps {
git credentialsId: 'dstar55', url: 'https://github.com/dstar55/DotNetHelloWorld', branch: 'master'
}
}
/*
stage('Restore PACKAGES') {
steps {
bat "dotnet restore --configfile NuGet.Config"
}
}*/
stage('Clean') {
steps {
bat 'dotnet clean'
}
}
stage('Build') {
steps {
bat 'dotnet build --configuration Release'
}
}
stage('Pack') {
steps {
bat 'dotnet pack --output nupkgs'
}
}
/*
stage('Publish') {
steps {
bat 'dotnet nuget push nupkgs\\DotNetHelloWorld.1.0.0.nupkg -k 8623ee99-8cc5-30ce-9437-0964aee3eb1f -s http://localhost:8081/repository/nuget-hosted'
}
}*/
}
}