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