diff --git a/Jenkinsfile b/Jenkinsfile new file mode 100644 index 0000000..3e7c5f8 --- /dev/null +++ b/Jenkinsfile @@ -0,0 +1,18 @@ +pipeline { + agent any + + stages { + 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/calculator', remoteDirectorySDF: false, removePrefix: '', sourceFiles: 'build/**')], usePromotionTimestamp: false, useWorkspaceInPromotion: false, verbose: false)]) + } + } + } +} +