add build and deploy steps

This commit is contained in:
andrzej 2024-05-26 16:19:26 +02:00
parent dd5f46d9ed
commit dd7078550f
1 changed files with 9 additions and 4 deletions

13
Jenkinsfile vendored
View File

@ -1,10 +1,15 @@
pipeline {
agent any
stages {
stage('Do nothing') {
steps {
sh '/bin/true'
stage('build'){
steps{
sh 'npm install'
sh 'npm run build'
}
}
stage('deploy'){
steps{
sshPublisher(publishers: [sshPublisherDesc(configName: 'Demos', transfers: [sshTransfer(cleanRemote: false, excludes: '', execCommand: '', execTimeout: 120000, flatten: false, makeEmptyDirs: false, noDefaultExcludes: false, patternSeparator: '[, ]+', remoteDirectory: 'ssh-uploads/movie-explorer', remoteDirectorySDF: false, removePrefix: '', sourceFiles: 'dist/**')], usePromotionTimestamp: false, useWorkspaceInPromotion: false, verbose: false)])
}
}
}