Skip to content

Commit

Permalink
Merge pull request #4 from stan-dev/add-ci-skip
Browse files Browse the repository at this point in the history
Add ci skip and ci run all
  • Loading branch information
serban-nicusor-toptal authored Feb 19, 2022
2 parents ac498b9 + 05e025a commit ed173a0
Showing 1 changed file with 12 additions and 0 deletions.
12 changes: 12 additions & 0 deletions src/org/stan/Utils.groovy
Original file line number Diff line number Diff line change
Expand Up @@ -63,6 +63,18 @@ def verifyChanges(String sourceCodePaths) {
git config user.name "Stan Jenkins"
"""

// If last commit message contains [ci skip] the current build will be skipped
checkCiSkip = sh (script: "git log -1 | grep '.*\\[ci skip\\].*'", returnStatus: true)
if (checkCiSkip == 0) {
return true
}

// If last commit message contains [ci run all] we will run all stages no matter of source code changes
checkCiRunAll = sh (script: "git log -1 | grep '.*\\[ci run all\\].*'", returnStatus: true)
if (checkCiRunAll == 0) {
return false
}

def commitHash = ""
def changeTarget = ""
def currentRepository = ""
Expand Down

0 comments on commit ed173a0

Please sign in to comment.