From 6edc3a1a18f6f475f680ae5b616bcf06bf0b5300 Mon Sep 17 00:00:00 2001 From: andrzej Date: Sat, 25 May 2024 11:20:08 +0200 Subject: [PATCH] add build and deploy steps --- Jenkinsfile | 11 ++++++++--- 1 file changed, 8 insertions(+), 3 deletions(-) diff --git a/Jenkinsfile b/Jenkinsfile index e7e2a94..93ac4f9 100644 --- a/Jenkinsfile +++ b/Jenkinsfile @@ -2,9 +2,14 @@ pipeline { agent any stages { - stage('Do nothing') { - steps { - sh '/bin/true' + stage('build'){ + steps{ + 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: 'dist')], usePromotionTimestamp: false, useWorkspaceInPromotion: false, verbose: false)]) } } }