-
Notifications
You must be signed in to change notification settings - Fork 0
/
Template Pipeline.groovy
43 lines (36 loc) · 1.17 KB
/
Template Pipeline.groovy
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
node {
stage('Clean')
{
deleteDir()
}
stage('Checkout')
{
git branch: 'master',
url: 'https://github.com/Ashley-Gibson/SOLID'
}
stage('Install Dependencies')
{
bat 'npm install'
}
stage('Build')
{
bat '\"C:\\_Project Code\\NuGet\\nuget.exe\" restore \"SOLID\\SOLID.sln\"'
bat '\"C:\\Program Files (x86)\\Microsoft Visual Studio\\2019\\Enterprise\\MSBuild\\Current\\Bin\\MSBuild.exe\" \"SOLID\\SOLID.sln\" /p:Configuration=Release /p:Platform=\"Any CPU\"'
}
stage('Test')
{
bat '\"C:\\Program Files (x86)\\Microsoft Visual Studio\\2019\\Enterprise\\Common7\\IDE\\mstest.exe" /resultsfile:\"C:\\_Personal Code\\Testing Reports\\Results.trx\" /testcontainer:\"C:\\_Personal Code\\SOLID\\SOLID\\Tests\\bin\\Release\\Tests.dll\" /nologo'
}
stage('Archive')
{
archiveArtifacts '/'
}
stage('Approval')
{
input 'Deploy?'
}
stage('Deploy')
{
bat '\"C:\\Program Files (x86)\\Microsoft Visual Studio\\2019\\Enterprise\\MSBuild\\Current\\Bin\\MSBuild.exe\" \"Publish.publishproj\"'
}
}