-
Notifications
You must be signed in to change notification settings - Fork 1.3k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Expression-based job filters #9046
Merged
Merged
Changes from all commits
Commits
Show all changes
10 commits
Select commit
Hold shift + click to select a range
4b62bd2
add section to config ref for expression job filters and use partial …
rosieyohannan 9a73f77
add example using pipeline params too
rosieyohannan c272e37
Merge branch 'master' into DOCSS-1637-expression-job-filters
rosieyohannan 33f3cbd
add missing full stop
rosieyohannan 709635f
fix lint error
rosieyohannan fb3c05f
Merge branch 'master' into DOCSS-1637-expression-job-filters
rosieyohannan 98399a3
update wording after review
rosieyohannan abfe55a
add missing to
rosieyohannan a201db8
update filters requirements definition to include string or map
rosieyohannan 4507c21
remove link to paragraph
rosieyohannan File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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
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
30 changes: 30 additions & 0 deletions
30
jekyll/_includes/partials/using-expressions/operators.adoc
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 |
---|---|---|
@@ -0,0 +1,30 @@ | ||
[.table.table-striped] | ||
[cols=3*, options="header", stripes=even] | ||
|=== | ||
| Operator type | Operators | Description | ||
|
||
| Logical | ||
|`and`, `or` | ||
| These are short-circuiting boolean operators. | ||
|
||
| Equality | ||
| `==`, `!=` | ||
| String, numeric, and boolean equality. If the operands are of different types then `==` will evaluate `false`, and `!=` will evaluate `true`. | ||
|
||
| Equality | ||
| `starts-with` | ||
| String prefix equality, `"hello world" starts-with "hello"` evaluates as `true`. It is an error to use a non-string type as an operand. | ||
|
||
| Numeric comparison | ||
| `>=`, `>`, `<=`, `<` | ||
| Numeric comparisons. It is an error to use a non-numeric type as an operand. | ||
|
||
| Negation | ||
| `not` | ||
a| Boolean negation. | ||
|
||
Note that `not` has very high precedence and so binds very tightly. Use sub-expressions to apply `not` to more complex expressions. For example, with `foo` being `true` and `bar` being `false`: | ||
|
||
* `not foo and bar` evaluates to `false` | ||
* `not (foo and bar)` evaluates to `true` | ||
|=== |
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
What do you think about
?