From dcb9628c36aaf48680aa9745aedd0daca3232079 Mon Sep 17 00:00:00 2001 From: Jamie Curnow Date: Sat, 11 May 2024 00:12:38 +1000 Subject: [PATCH] CI improvement: move docs upload to separate build --- Jenkinsfile | 23 +++-------------------- 1 file changed, 3 insertions(+), 20 deletions(-) diff --git a/Jenkinsfile b/Jenkinsfile index d1b21b9b..efe3a26c 100644 --- a/Jenkinsfile +++ b/Jenkinsfile @@ -92,10 +92,6 @@ pipeline { sh 'yarn install' sh 'yarn build' } - dir(path: 'docs/dist') { - sh 'tar -czf ../docs.tgz *' - } - archiveArtifacts(artifacts: 'docs/docs.tgz', allowEmptyArchive: false) } } stage('Cypress') { @@ -185,30 +181,17 @@ pipeline { } stage('Docs / Comment') { parallel { - stage('Master Docs') { + stage('Docs Job') { when { allOf { - branch 'master' + when { branch pattern: "^(develop|master)$", comparator: "REGEXP"} not { equals expected: 'UNSTABLE', actual: currentBuild.result } } } steps { - npmDocsReleaseMaster() - } - } - stage('Develop Docs') { - when { - allOf { - branch 'develop' - not { - equals expected: 'UNSTABLE', actual: currentBuild.result - } - } - } - steps { - npmDocsReleaseDevelop() + build wait: false, job: 'nginx-proxy-manager-docs', parameters: [string(name: 'docs_branch', value: "$BRANCH_NAME")] } } stage('PR Comment') {