Changed pipeline to use correct NodeJS env name.

This commit is contained in:
Harrison Deng 2022-05-11 17:33:24 -05:00
parent 9096fcd3be
commit fd87219999

9
Jenkinsfile vendored
View File

@ -1,9 +1,14 @@
pipeline {
agent any
stages {
stage ("install") {
steps {
}
}
stage ("build") {
steps {
nodejs("NodeJS (17.4.0)") {
nodejs("System NodeJS") {
sh "npm install"
sh "npm run build"
}
@ -14,7 +19,7 @@ pipeline {
branch '**/master'
}
steps {
sshPublisher(publishers: [sshPublisherDesc(configName: 'Reslate Systems Web Server', transfers: [sshTransfer(cleanRemote: false, excludes: '', execCommand: '', execTimeout: 120000, flatten: false, makeEmptyDirs: false, noDefaultExcludes: false, patternSeparator: '[, ]+', remoteDirectory: 'www/ent.sys.reslate.xyz', remoteDirectorySDF: false, removePrefix: '', sourceFiles: 'dist/**')], usePromotionTimestamp: false, useWorkspaceInPromotion: false, verbose: false)])
sshPublisher(publishers: [sshPublisherDesc(configName: 'RS - Web Server', transfers: [sshTransfer(cleanRemote: false, excludes: '', execCommand: '', execTimeout: 120000, flatten: false, makeEmptyDirs: false, noDefaultExcludes: false, patternSeparator: '[, ]+', remoteDirectory: 'ent.sys.reslate.xyz', remoteDirectorySDF: false, removePrefix: '', sourceFiles: 'dist/**')], usePromotionTimestamp: false, useWorkspaceInPromotion: false, verbose: false)])
}
}
}