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 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
|
||||||
)
|
)
|
||||||
|
Loading…
Reference in New Issue
Block a user