using node instead of containers
This commit is contained in:
parent
d21cbb9d39
commit
7bd855534f
@ -1,30 +1,32 @@
|
||||
pipeline {
|
||||
agent any
|
||||
|
||||
environment {
|
||||
DOTNET_CLI_HOME = "/tmp/DOTNET_CLI_HOME"
|
||||
}
|
||||
// environment {
|
||||
// DOTNET_CLI_HOME = "/tmp/DOTNET_CLI_HOME"
|
||||
// }
|
||||
|
||||
stages {
|
||||
stage('Build C#') {
|
||||
agent {
|
||||
docker {
|
||||
image 'mcr.microsoft.com/dotnet/sdk:7.0'
|
||||
}
|
||||
}
|
||||
// agent {
|
||||
// docker {
|
||||
// image 'mcr.microsoft.com/dotnet/sdk:7.0'
|
||||
// }
|
||||
// }
|
||||
steps {
|
||||
dotnetRestore project: "Selector.Core.sln", packages: './packages'
|
||||
sh 'dotnet build --packages ./packages Selector.Core.sln'
|
||||
// dotnetRestore project: "Selector.Core.sln", packages: './packages'
|
||||
// sh 'dotnet build --packages ./packages Selector.Core.sln'
|
||||
dotnetRestore project: "Selector.Core.sln"
|
||||
dotnetBuild project: 'Selector.Core.sln'
|
||||
}
|
||||
}
|
||||
|
||||
stage('Build Javascript') {
|
||||
agent {
|
||||
docker {
|
||||
image 'node:16'
|
||||
reuseNode true
|
||||
}
|
||||
}
|
||||
// agent {
|
||||
// docker {
|
||||
// image 'node:16'
|
||||
// reuseNode true
|
||||
// }
|
||||
// }
|
||||
steps {
|
||||
dir ('Selector.Web') {
|
||||
sh "npm ci"
|
||||
@ -33,12 +35,12 @@ pipeline {
|
||||
}
|
||||
}
|
||||
stage('Test') {
|
||||
agent {
|
||||
docker {
|
||||
image 'mcr.microsoft.com/dotnet/sdk:7.0'
|
||||
reuseNode true
|
||||
}
|
||||
}
|
||||
// agent {
|
||||
// docker {
|
||||
// image 'mcr.microsoft.com/dotnet/sdk:7.0'
|
||||
// reuseNode true
|
||||
// }
|
||||
// }
|
||||
steps {
|
||||
dotnetTest project: "Selector.Core.sln"
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user