From: Yann Dirson Date: Mon, 29 Jan 2024 14:34:48 +0000 (+0100) Subject: ci: cleanup after jobs making changes to source files X-Git-Url: http://xenbits.xensource.com/gitweb?a=commitdiff_plain;h=03422b04974dae98141df5362906072862d9b0f1;p=xen-guest-agent.git ci: cleanup after jobs making changes to source files As a followup to 09aa5bc275fc023aa55c7491f2ab7e8e60bf1935, we can now see some everycommit jobs failing to run rebase because of modified files. This makes sure the few jobs touching source files cleanup after doing their jobs. Signed-off-by: Yann Dirson --- diff --git a/.gitlab-ci.yml b/.gitlab-ci.yml index 9800be3..31dcf11 100644 --- a/.gitlab-ci.yml +++ b/.gitlab-ci.yml @@ -234,6 +234,10 @@ build-freebsd13-netlink-x86_64: - mkdir .cargo - cp devscripts/cargo-freebsd-netlink.toml .cargo/config.toml - cargo update -p libc -p rtnetlink + 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 checkout HEAD Cargo.toml artifacts: paths: - target/x86_64-unknown-freebsd/debug/xen-guest-agent @@ -289,6 +293,9 @@ build-latest-linux: after_script: # show which dependencies changed in Cargo.lock - git diff + # 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 checkout HEAD Cargo.toml build-latest-freebsd13-x86_64: parallel: !reference [.featurematrix.no-netlink,parallel] @@ -303,6 +310,9 @@ build-latest-freebsd13-x86_64: after_script: # show which dependencies changed in Cargo.lock - git diff + # 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 checkout HEAD Cargo.toml ## source packaging