Jenkinsfile.
This commit is contained in:
parent
c3751d1ba2
commit
dd6796e6b3
9
Jenkinsfile
vendored
9
Jenkinsfile
vendored
@ -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
|
||||
)
|
||||
|
Loading…
Reference in New Issue
Block a user