first jenkins file
piwigodotnet/pipeline/head There was a failure building this commit
Details
piwigodotnet/pipeline/head There was a failure building this commit
Details
This commit is contained in:
parent
6f16409ee2
commit
6b5a59e558
|
@ -0,0 +1,40 @@
|
|||
pipeline {
|
||||
agent {
|
||||
docker { image 'node:16-alpine'}
|
||||
}
|
||||
|
||||
stages {
|
||||
stage ('Clean workspace') {
|
||||
steps {
|
||||
cleanWs()
|
||||
}
|
||||
}
|
||||
|
||||
stage('Cloning repository') {
|
||||
steps {
|
||||
checkout scm
|
||||
}
|
||||
}
|
||||
|
||||
stage('nuget restore') {
|
||||
steps {
|
||||
sh "cd ${env.WORKSPACE}/src"
|
||||
sh "dotnet restore"
|
||||
}
|
||||
}
|
||||
|
||||
stage('build') {
|
||||
steps {
|
||||
sh "cd ${env.WORKSPACE}/src"
|
||||
sh "dotnet build -p:Version=0.1.0.${env.BUILD_NUMBER}"
|
||||
}
|
||||
}
|
||||
|
||||
stage('Testing') {
|
||||
steps {
|
||||
sh "cd ${env.WORKSPACE}/src"
|
||||
sh "dotnet test"
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
Loading…
Reference in New Issue