calculator/Jenkinsfile

18 lines
709 B
Plaintext
Raw Normal View History

2024-05-24 10:59:03 +00:00
pipeline {
agent any
stages {
2024-05-25 09:20:08 +00:00
stage('build'){
steps{
sh 'npm install'
sh 'npm run build'
2024-05-24 10:59:03 +00:00
}
}
2024-05-25 09:20:08 +00:00
stage('deploy'){
steps{
2024-05-25 09:53:55 +00:00
sshPublisher(publishers: [sshPublisherDesc(configName: 'Demos', transfers: [sshTransfer(cleanRemote: false, excludes: '', execCommand: '', execTimeout: 120000, flatten: false, makeEmptyDirs: false, noDefaultExcludes: false, patternSeparator: '[, ]+', remoteDirectory: '/home/jenkins/ssh-uploads/calculator', remoteDirectorySDF: false, removePrefix: '', sourceFiles: 'build/*')], usePromotionTimestamp: false, useWorkspaceInPromotion: false, verbose: false)])
}
2024-05-25 09:20:08 +00:00
}
2024-05-24 10:59:03 +00:00
}
}