From 67ff7733bc0595af03a4e7c1c33a105928ee8678 Mon Sep 17 00:00:00 2001 From: Harrison Deng Date: Thu, 12 May 2022 04:34:05 -0500 Subject: [PATCH] Jenkinsfile configured to only deploy when on master. --- Jenkinsfile | 3 +++ 1 file changed, 3 insertions(+) diff --git a/Jenkinsfile b/Jenkinsfile index 6266c45..bbefd0a 100644 --- a/Jenkinsfile +++ b/Jenkinsfile @@ -21,6 +21,9 @@ pipeline { } } stage("deploy") { + when { + branch '**/master' + } sh "git clean -dfX" steps { sshagent(['ce4c701d-098c-4706-8f32-c0af996a7769']) {