From 0d39b4eabeffad98bf1976d846569cec4cc95753 Mon Sep 17 00:00:00 2001 From: Andrew Dolgov Date: Thu, 24 Nov 2022 07:51:15 +0300 Subject: [PATCH] limit CI builds to static-dockerhub branch --- Jenkinsfile | 13 ++++++------- 1 file changed, 6 insertions(+), 7 deletions(-) diff --git a/Jenkinsfile b/Jenkinsfile index a311964..fe0107e 100644 --- a/Jenkinsfile +++ b/Jenkinsfile @@ -47,6 +47,9 @@ pipeline { } } stage('build') { + when { + branch "static-dockerhub" + } environment { REPO_TIMESTAMP = sh(returnStdout: true, script: "git --git-dir 'tt-rss/.git' --no-pager log --pretty='%ct' -n1 HEAD") @@ -108,6 +111,9 @@ pipeline { } } stage('phpdoc') { + when { + branch "static-dockerhub" + } steps { sh """ docker run --rm \ @@ -131,13 +137,6 @@ pipeline { } } } - /*stage('cleanup') { - steps { - sh """ - docker system prune -f -a - """ - } - }*/ } post {