From 11c14117757523fa47f4a53516a6cd8ec43489f2 Mon Sep 17 00:00:00 2001 From: Marks Polakovs Date: Mon, 13 Apr 2020 18:45:02 +0200 Subject: [PATCH] please don't deploy pull requests, that would be bad --- Jenkinsfile | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/Jenkinsfile b/Jenkinsfile index 936443d..f7e4a7a 100644 --- a/Jenkinsfile +++ b/Jenkinsfile @@ -43,6 +43,12 @@ pipeline { } stage('Build and deploy to dev instance') { + when { + anyOf { + branch 'master' + branch 'production' + } + } steps { sh 'sed -i -e \'s/ury.org.uk\\/webstudio/ury.org.uk\\/webstudio-dev/\' package.json' sh 'yarn build'