You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
## What
This fixes `permit_restart_from_failed_steps` behavior in `pipeline`
resource.
Before this fix, setting `permit_restart_from_failed_steps = false` or
omitting this key resulted in “Permit restart from failed step: Use
account settings” for both cases.
New syntax/behavior is:
`permit_restart_from_failed_steps = [true|false]` with the default value
`true` (“Permit”).
If `false`, the policy is set to “Forbid”.
New flag is added:
`permit_restart_from_failed_steps_use_account_settings = [false|true]`
with the default value `false` (“do not use account settings”).
If `true`, `permit_restart_from_failed_steps` will be ignored and
pipeline policy will be set to “Use account settings”.
> [!WARNING]
> BREAKING CHANGES!
> * Previously, `permit_restart_from_failed_steps = false` resulted in
“Permit restart from failed step: Use account settings”.
> From now on, setting `permit_restart_from_failed_steps = false` will
result in “Permit restart from failed step: Forbid”
Fixes #CR-26963
## Notes
<!-- Add any notes here -->
## Checklist
* [x] _I have read
[CONTRIBUTING.md](https://github.com/codefresh-io/terraform-provider-codefresh/blob/master/CONTRIBUTING.md)._
* [ ] _I have [allowed changes to my fork to be
made](https://docs.github.com/en/pull-requests/collaborating-with-pull-requests/working-with-forks/allowing-changes-to-a-pull-request-branch-created-from-a-fork)._
* [x] _I have added tests, assuming new tests are warranted_.
* [x] _I understand that the `/test` comment will be ignored by the CI
trigger [unless it is made by a repo admin or
collaborator](https://codefresh.io/docs/docs/pipelines/triggers/git-triggers/#support-for-building-pull-requests-from-forks)._
Description: "The central component of the Codefresh Platform. Pipelines are workflows that contain individual steps. Each step is responsible for a specific action in the process.",
Description: "Defines whether `permit_restart_from_failed_steps` should be set to “Use account settings” (default: `false`). If set, `permit_restart_from_failed_steps` will be ignored.",
Copy file name to clipboardExpand all lines: docs/resources/pipeline.md
+2-1
Original file line number
Diff line number
Diff line change
@@ -132,7 +132,8 @@ Optional:
132
132
-`external_resource` (Block List) (see [below for nested schema](#nestedblock--spec--external_resource))
133
133
-`options` (Block List, Max: 1) The options for the pipeline. (see [below for nested schema](#nestedblock--spec--options))
134
134
-`pack_id` (String) SAAS pack (`5cd1746617313f468d669013` for Small; `5cd1746717313f468d669014` for Medium; `5cd1746817313f468d669015` for Large; `5cd1746817313f468d669017` for XL; `5cd1746817313f468d669018` for XXL); `5cd1746817313f468d669020` for 4XL).
135
-
-`permit_restart_from_failed_steps` (Boolean) Defines whether it is permitted to restart builds in this pipeline from failed step. Defaults to true
135
+
-`permit_restart_from_failed_steps` (Boolean) Defines whether it is permitted to restart builds in this pipeline from failed step (default: `true`).
136
+
-`permit_restart_from_failed_steps_use_account_settings` (Boolean) Defines whether `permit_restart_from_failed_steps` should be set to “Use account settings” (default: `false`). If set, `permit_restart_from_failed_steps` will be ignored.
136
137
-`priority` (Number) Helps to organize the order of builds execution in case of reaching the concurrency limit (default: `0`).
137
138
-`required_available_storage` (String) Minimum disk space required for build filesystem ( unit Gi is required).
138
139
-`runtime_environment` (Block List) The runtime environment for the pipeline. (see [below for nested schema](#nestedblock--spec--runtime_environment))
0 commit comments