Those jobs want to start a rebase, but that cannot work when a rebase is
already in progress... which can happen since we use the "fetch" Git
Strategy (now in Gitlab project CI config), and when such a job fails.
We must cleanup things after
Signed-off-by: Yann Dirson <yann.dirson@vates.fr>
# failing commit)
- git rebase --rebase-merges $CI_MERGE_REQUEST_DIFF_BASE_SHA
--exec 'devscripts/gitlab-ci-runbuild.sh cargo build ${FEATURES} ${CARGO_FLAGS}'
+ after_script:
+ # since Git Strategy is "fetch", avoid poluting subsequent runs
+ # (but as of v16.9 it still won't be run on timeout or cancel)
+ - git rebase --abort || true
build-linux:
parallel: !reference [.featurematrix,parallel]