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