-
Notifications
You must be signed in to change notification settings - Fork 1
/
Jenkinsfile
34 lines (34 loc) · 876 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 {
dockerfile {
filename 'Dockerfile.sdk'
}
}
stages {
stage('Verify') {
steps {
sh '''
dotnet --list-sdks
dotnet --list-runtimes
'''
sh 'printenv'
sh 'ls -l "$WORKSPACE"'
}
}
stage('Build') {
steps {
sh 'dotnet build "$WORKSPACE/Britannica.Host/Britannica.Host.csproj"'
}
}
stage('Unit Test') {
steps {
sh 'dotnet test "$WORKSPACE/Britannica.UnitTest/Britannica.UnitTest.csproj"'
}
}
stage('Smoke Test') {
steps {
sh 'dotnet "$WORKSPACE/Britannica.Host/bin/Debug/netcoreapp3.1/Britannica.Host.dll"'
}
}
}
}