piwigodotnet/Jenkinsfile

41 lines
633 B
Plaintext
Raw Normal View History

2022-10-25 22:17:59 +02:00
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"
}
}
}
}