Skip to content

Commit

Permalink
chore: exclude stages for PRs (elastic#329)
Browse files Browse the repository at this point in the history
* chore: exclude stages for PRs

* fix: proper method call

* chore: run the entire pipeline for PRs, but with same behavior than dry_run

* fix: forgot block
  • Loading branch information
mdelapenya authored Aug 19, 2020
1 parent 6744e1b commit 2478b40
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion .ci/Jenkinsfile
Original file line number Diff line number Diff line change
Expand Up @@ -173,7 +173,7 @@ def generateStepForAgent(Map args = [:]){
setupAPMGitEmail(global: true)
sh script: """.ci/scripts/prepare-spec-changes.sh "${repo}" "${filesType}" "${filesPath}" """, label: "Prepare ${filesType} changes for ${repo}"
dir(".ci/${repo}") {
if (params.DRY_RUN_MODE) {
if (params.DRY_RUN_MODE || isPR()) {
echo "DRY-RUN: ${repo}"
} else {
githubCreatePullRequest(title: "test: synchronizing ${filesType} spec", labels: 'automation')
Expand Down

0 comments on commit 2478b40

Please sign in to comment.