Jenkinsfile.

This commit is contained in:
Maciej Prill 2022-10-24 08:54:05 +02:00
parent c3751d1ba2
commit dd6796e6b3

9
Jenkinsfile vendored
View File

@ -18,6 +18,11 @@ pipeline {
sh 'npm clean-install --only=production'
sh 'npm run build'
}
}
stage('Package') {
steps {
sh 'tar zcf build.tar.gz build/*'
}
}
stage('SSH-publish-transfer') {
steps {
@ -28,8 +33,8 @@ pipeline {
sshPublisherDesc(
configName: "mprill-gonito-front-dev",
transfers: [sshTransfer(
sourceFiles: 'build/**',
remoteDirectory: 'public_html'
sourceFiles: build.tar.gz',
execCommand: 'tar zxf build.tar.gz -O public_html'
)],
verbose: true
)