21 lines
765 B
Groovy
21 lines
765 B
Groovy
pipeline {
|
|
agent any
|
|
stages {
|
|
stage ("build") {
|
|
steps {
|
|
nodejs("NodeJS (17.4.0)") {
|
|
sh "npm install"
|
|
sh "npm run build"
|
|
}
|
|
}
|
|
}
|
|
stage ("deploy") {
|
|
when {
|
|
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)])
|
|
}
|
|
}
|
|
}
|
|
} |