Jenkinsfile.

This commit is contained in:
Maciej Prill 2022-10-24 08:37:32 +02:00
parent 497134c1f5
commit 4c487ff95a

23
Jenkinsfile vendored
View File

@ -13,13 +13,30 @@ pipeline {
stages {
stage('Build') {
steps {
sh 'uname -a'
sh 'npm install --loglevel=verbose'
//sh 'npm install react-scripts@3.4.1'
//sh 'npm install --loglevel=verbose'
sh 'npm install'
sh 'npm clean-install --only=production'
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
)
]
)
}
}
}