Commit aafa6c10 authored by Thomas de Grenier de Latour's avatar Thomas de Grenier de Latour
Browse files

feat: handle new env vars for gitlab-butler 1.0.17 ($HALT_ON_ERROR, $VERBOSE)

parent 79531fc1
Loading
Loading
Loading
Loading
+2 −0
Original line number Diff line number Diff line
@@ -74,6 +74,8 @@ Defaults values are set to manage GitLab Butler behavior:
| `BUTLER_PIPELINES_KEEP_PER_TAG`      | number of pipelines to keep per tag (⚠ tag MUST still exist)                              |
| `BUTLER_PIPELINES_KEEP_PER_MR`       | number of pipelines to keep per merge request (⚠ MR MUST still exist)                     |
| `BUTLER_PIPELINES_DELETE_OLDER_THAN` | max age (in days) after which pipelines are deleted (unless they are kept by a keep rule) |
| `BUTLER_HALT_ON_ERROR`               | halt when an error occurs if set to `true` (default is unset, no halt on non-fatal error) |
| `BUTLER_VERBOSE`                     | enable verbose logs if set to `true` (default is unset, non-verbose mode)                 |

### Dry-run implementation details

+4 −0
Original line number Diff line number Diff line
@@ -69,6 +69,8 @@ variables:
  #BUTLER_PIPELINES_KEEP_PER_BRANCH: ''
  #BUTLER_PIPELINES_KEEP_PER_TAG: ''
  #BUTLER_PIPELINES_KEEP_PER_MR: ''
  #BUTLER_HALT_ON_ERROR: ''
  #BUTLER_VERBOSE: ''

.gitlab-butler-scripts: &gitlab-butler-scripts |
  # BEGSCRIPT
@@ -324,6 +326,8 @@ stages:
    PIPELINES_KEEP_PER_BRANCH: $BUTLER_PIPELINES_KEEP_PER_BRANCH
    PIPELINES_KEEP_PER_TAG: $BUTLER_PIPELINES_KEEP_PER_TAG
    PIPELINES_KEEP_PER_MR: $BUTLER_PIPELINES_KEEP_PER_MR
    HALT_ON_ERROR: $BUTLER_HALT_ON_ERROR
    VERBOSE: $BUTLER_VERBOSE

  before_script:
    - !reference [.gitlab-butler-scripts]