Skip to content

Commit

Permalink
use one label and error
Browse files Browse the repository at this point in the history
  • Loading branch information
v1v committed Oct 2, 2020
1 parent 7c218ea commit 2a3d98f
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 6 deletions.
7 changes: 2 additions & 5 deletions Jenkinsfile
Original file line number Diff line number Diff line change
Expand Up @@ -105,18 +105,15 @@ pipeline {
def content = readYaml(file: 'Jenkinsfile.yml')
println content
if (content?.disabled?.when?.labels && beatsWhen(project: 'top-level', content: content?.disabled?.when)) {
def message = 'Pull Request has been configured to be disabled when there is a skip-ci label match'
warnError(message) {
error message
}
error 'Pull Request has been configured to be disabled when there is a skip-ci label match'
} else {
content['projects'].each { projectName ->
generateStages(project: projectName, changeset: content['changeset']).each { k,v ->
mapParallelTasks["${k}"] = v
}
}
notifyBuildReason()
//parallel(mapParallelTasks)
parallel(mapParallelTasks)
}
}
}
Expand Down
1 change: 0 additions & 1 deletion Jenkinsfile.yml
Original file line number Diff line number Diff line change
Expand Up @@ -44,6 +44,5 @@ disabled:
when:
labels: ## Skip the GitHub Pull Request builds if any of the given GitHub labels match with the assigned labels in the PR.
- skip-ci
- skip-ci-build
## TODO: This will allow to configure what to do based on the PR configuration
draft: true ## Skip the GitHub Pull Request builds with Draft PRs.

0 comments on commit 2a3d98f

Please sign in to comment.