From c3751d1ba25d1e34b0152cccbb66d9222859577f Mon Sep 17 00:00:00 2001 From: Maciej Prill Date: Mon, 24 Oct 2022 08:46:26 +0200 Subject: [PATCH] Jenkinsfile. --- Jenkinsfile | 17 ++++++++++++++++- 1 file changed, 16 insertions(+), 1 deletion(-) 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 + ) + ] + ) + } + } } }