fixing dotnet home
This commit is contained in:
parent
1f6536c36d
commit
193ebd9f06
@ -1,6 +1,10 @@
|
|||||||
pipeline {
|
pipeline {
|
||||||
agent any
|
agent any
|
||||||
|
|
||||||
|
environment {
|
||||||
|
DOTNET_CLI_HOME = "/tmp/DOTNET_CLI_HOME"
|
||||||
|
}
|
||||||
|
|
||||||
stages {
|
stages {
|
||||||
stage('Build C#') {
|
stage('Build C#') {
|
||||||
agent {
|
agent {
|
||||||
@ -13,8 +17,8 @@ pipeline {
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
steps {
|
steps {
|
||||||
sh "dotnet restore Selector.Core.sln"
|
dotnetRestore "Selector.Core.sln"
|
||||||
sh "dotnet build Selector.Core.sln"
|
dotnetBuild "Selector.Core.sln"
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
@ -22,9 +26,6 @@ pipeline {
|
|||||||
agent {
|
agent {
|
||||||
docker {
|
docker {
|
||||||
image 'node:16'
|
image 'node:16'
|
||||||
// Run the container on the node specified at the
|
|
||||||
// top-level of the Pipeline, in the same workspace,
|
|
||||||
// rather than on a new node entirely:
|
|
||||||
reuseNode true
|
reuseNode true
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
@ -39,14 +40,11 @@ pipeline {
|
|||||||
agent {
|
agent {
|
||||||
docker {
|
docker {
|
||||||
image 'mcr.microsoft.com/dotnet/sdk:7.0'
|
image 'mcr.microsoft.com/dotnet/sdk:7.0'
|
||||||
// Run the container on the node specified at the
|
|
||||||
// top-level of the Pipeline, in the same workspace,
|
|
||||||
// rather than on a new node entirely:
|
|
||||||
reuseNode true
|
reuseNode true
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
steps {
|
steps {
|
||||||
sh "dotnet test Selector.Core.sln"
|
dotnetTest "Selector.Core.sln"
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
stage('Deploy') {
|
stage('Deploy') {
|
||||||
|
Loading…
Reference in New Issue
Block a user