Jenkinsfile.
This commit is contained in:
parent
497134c1f5
commit
4c487ff95a
23
Jenkinsfile
vendored
23
Jenkinsfile
vendored
@ -13,13 +13,30 @@ pipeline {
|
|||||||
stages {
|
stages {
|
||||||
stage('Build') {
|
stage('Build') {
|
||||||
steps {
|
steps {
|
||||||
sh 'uname -a'
|
//sh 'npm install --loglevel=verbose'
|
||||||
sh 'npm install --loglevel=verbose'
|
sh 'npm install'
|
||||||
//sh 'npm install react-scripts@3.4.1'
|
|
||||||
sh 'npm clean-install --only=production'
|
sh 'npm clean-install --only=production'
|
||||||
sh 'npm run build'
|
sh 'npm run build'
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
stage('SSH-publish') {
|
||||||
|
steps {
|
||||||
|
sshPublisher(
|
||||||
|
continueOnError: false,
|
||||||
|
failOnError: true,
|
||||||
|
publishers: [
|
||||||
|
sshPublisherDesc(
|
||||||
|
configName: "mprill-gonito-front-dev",
|
||||||
|
transfers: [sshTransfer(
|
||||||
|
sourceFiles: 'build/*',
|
||||||
|
remoteDirectory: 'public_html'
|
||||||
|
)],
|
||||||
|
verbose: true
|
||||||
|
)
|
||||||
|
]
|
||||||
|
)
|
||||||
|
}
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user