Skip to content
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

bkr-job schema: add optional task attrs 'keepchanges', 'fetch_opts' #185

Open
wants to merge 1 commit into
base: develop
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 3 additions & 1 deletion Common/bkr/common/schema/beaker-job.rnc
Original file line number Diff line number Diff line change
Expand Up @@ -439,7 +439,9 @@ task =
" "
]
]
attribute name { text }
attribute name { text },
attribute keepchanges { text }?,
attribute fetch_opts { text }?
| (element fetch {
[
a:documentation [
Expand Down
13 changes: 13 additions & 0 deletions Common/bkr/common/schema/beaker-job.rng
Original file line number Diff line number Diff line change
Expand Up @@ -433,6 +433,19 @@ the Free Software Foundation; either version 2 of the License, or
task must exist in Beaker's task library.
</a:documentation>
</attribute>
<optional>
<attribute name="keepchanges">
<a:documentation xml:lang="en">
Enable the Restraint keepchanges feature.
</a:documentation>
</attribute>
<attribute name="fetch_opts">
<a:documentation xml:lang="en">
Restraint fetch options, e.g:
fetch_opts="retry=8,timeo=16,abort-recipe-on-fetch-fail"
fetch_opts="retry=8,keepchanges"
</a:documentation>
</optional>
<group>
<element name="fetch">
<attribute name="url">
Expand Down