diff --git a/Jenkinsfile b/Jenkinsfile index 4b4930a..eddbf24 100644 --- a/Jenkinsfile +++ b/Jenkinsfile @@ -19,7 +19,7 @@ pipeline { sh 'npm run build' } } - stage('SSH-publish') { + stage('SSH-publish-transfer') { steps { sshPublisher( continueOnError: false, @@ -37,6 +37,21 @@ pipeline { ) } } + stage('SSH-publish-permissions') { + steps { + sshPublisher( + continueOnError: false, + failOnError: true, + publishers: [ + sshPublisherDesc( + configName: "mprill-gonito-front-dev", + transfers: [sshTransfer(execCommand: 'chmod o+rX public_html')], + verbose: true + ) + ] + ) + } + } } }