forked from elastic/apm
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Use latest version of isGitRegionMatch (elastic#238)
* chore: use uppercase in the spec * chore: use new version of the isGitRegionMatch step
- Loading branch information
1 parent
d672c3d
commit e862598
Showing
2 changed files
with
6 additions
and
5 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -49,14 +49,15 @@ pipeline { | |
repo: "[email protected]:elastic/${REPO}.git", | ||
credentialsId: "${JOB_GIT_CREDENTIALS}" | ||
) | ||
// make sure the GIT variables are properly set for the isGitRegionMatch step | ||
setEnvVar('GIT_PREVIOUS_COMMIT', "${env.GIT_PREVIOUS_SUCCESSFUL_COMMIT}") | ||
script { | ||
dir("${BASE_DIR}"){ | ||
def regexps =[ | ||
"^tests/agents/gherkin-specs/" | ||
] | ||
env.GHERKIN_SPECS_UPDATED = isGitRegionMatch(patterns: regexps) | ||
env.GHERKIN_SPECS_UPDATED = isGitRegionMatch( | ||
from: "${env.GIT_PREVIOUS_SUCCESSFUL_COMMIT}", | ||
to: "${env.GIT_COMMIT}", | ||
patterns: regexps) | ||
} | ||
} | ||
stash allowEmpty: true, name: 'source', useDefaultExcludes: false | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters