add build and deploy steps

This commit is contained in:
andrzej 2024-05-25 11:20:08 +02:00
parent b6d7b2eb48
commit 18e85bf1f5
1 changed files with 9 additions and 3 deletions

12
Jenkinsfile vendored
View File

@ -2,10 +2,16 @@ pipeline {
agent any agent any
stages { stages {
stage('Do nothing') { stage('build'){
steps{ steps{
sh '/bin/true' 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: '/home/jenkins/ssh-uploads/calculator', remoteDirectorySDF: false, removePrefix: '', sourceFiles: 'build')], usePromotionTimestamp: false, useWorkspaceInPromotion: false, verbose: false)])
} }
} }
} }