Unverified Commit e102e312 authored by Robert Knight's avatar Robert Knight Committed by GitHub

Merge pull request #791 from hypothesis/skip-publication-for-jenkins-commits

Skip builds of automated commits on Jenkins
parents e86fa4a0 988faa34
...@@ -26,6 +26,16 @@ node { ...@@ -26,6 +26,16 @@ node {
npmTag = "prerelease" npmTag = "prerelease"
} }
lastCommitAuthor = sh (
script: 'git show HEAD --no-patch --format="%an"',
returnStdout: true
).trim()
if (lastCommitAuthor == "jenkins-hypothesis") {
echo "Skipping build of automated commit created by Jenkins"
return
}
pkgName = sh ( pkgName = sh (
script: 'cat package.json | jq -r .name', script: 'cat package.json | jq -r .name',
returnStdout: true returnStdout: true
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment