diff --git a/.gitlab-ci.yml b/.gitlab-ci.yml index cc85e9c0445fb..f8d5c11f5b960 100644 --- a/.gitlab-ci.yml +++ b/.gitlab-ci.yml @@ -156,6 +156,8 @@ agent_deb-x64: image: 486234852809.dkr.ecr.us-east-1.amazonaws.com/datadog-agent-builders/deb_x64:latest tags: [ "runner:main", "size:large" ] script: + # remove artifacts from previous pipelines that may come from the cache + - rm -rf $OMNIBUS_PACKAGE_DIR/* # Artifacts and cache must live within project directory but we run omnibus # from the GOPATH (see above). We then call `invoke` passing --base-dir, # pointing to a gitlab-friendly location. @@ -178,6 +180,8 @@ agent_rpm-x64: image: 486234852809.dkr.ecr.us-east-1.amazonaws.com/datadog-agent-builders/rpm_x64:latest tags: [ "runner:main", "size:large" ] script: + # remove artifacts from previous pipelines that may come from the cache + - rm -rf $OMNIBUS_PACKAGE_DIR/* # Artifacts and cache must live within project directory but we run omnibus # from the GOPATH (see above). We then call `invoke` passing --base-dir, # pointing to a gitlab-friendly location. @@ -204,6 +208,8 @@ agent_suse-x64: image: 486234852809.dkr.ecr.us-east-1.amazonaws.com/datadog-agent-builders/suse_x64:latest tags: [ "runner:main", "size:large" ] script: + # remove artifacts from previous pipelines that may come from the cache + - rm -rf $OMNIBUS_PACKAGE_DIR/* # Artifacts and cache must live within project directory but we run omnibus # from the GOPATH (see above). We then call `invoke` passing --base-dir, # pointing to a gitlab-friendly location. @@ -238,6 +244,8 @@ build_windows_msi_x64: stage: package_build tags: ["runner:windows-agent6"] script: + # remove artifacts from previous pipelines that may come from the cache + - rm -rf .omnibus/pkg/ - cd %GOPATH%\src\github.com\DataDog\datadog-agent - inv agent.omnibus-build --release-version %RELEASE_VERSION% after_script: @@ -250,6 +258,8 @@ cluster-agent_deb-x64: image: 486234852809.dkr.ecr.us-east-1.amazonaws.com/datadog-agent-builders/deb_x64:latest tags: [ "runner:main", "size:large" ] script: + # remove artifacts from previous pipelines that may come from the cache + - rm -rf $OMNIBUS_PACKAGE_DIR/* # Artifacts and cache must live within project directory but we run omnibus # from the GOPATH (see above). We then call `invoke` passing --base-dir, # pointing to a gitlab-friendly location. @@ -272,6 +282,8 @@ cluster-agent_rpm-x64: image: 486234852809.dkr.ecr.us-east-1.amazonaws.com/datadog-agent-builders/rpm_x64:latest tags: [ "runner:main", "size:large" ] script: + # remove artifacts from previous pipelines that may come from the cache + - rm -rf $OMNIBUS_PACKAGE_DIR/* # Artifacts and cache must live within project directory but we run omnibus # from the GOPATH (see above). We then call `invoke` passing --base-dir, # pointing to a gitlab-friendly location. @@ -298,6 +310,8 @@ dogstatsd_deb-x64: image: 486234852809.dkr.ecr.us-east-1.amazonaws.com/datadog-agent-builders/deb_x64:latest tags: [ "runner:main", "size:large" ] script: + # remove artifacts from previous pipelines that may come from the cache + - rm -rf $OMNIBUS_PACKAGE_DIR/* # Artifacts and cache must live within project directory but we run omnibus # from the GOPATH (see above). We then call `invoke` passing --base-dir, # pointing to a gitlab-friendly location. @@ -320,6 +334,8 @@ dogstatsd_rpm-x64: image: 486234852809.dkr.ecr.us-east-1.amazonaws.com/datadog-agent-builders/rpm_x64:latest tags: [ "runner:main", "size:large" ] script: + # remove artifacts from previous pipelines that may come from the cache + - rm -rf $OMNIBUS_PACKAGE_DIR/* # Artifacts and cache must live within project directory but we run omnibus # from the GOPATH (see above). We then call `invoke` passing --base-dir, # pointing to a gitlab-friendly location. @@ -347,6 +363,8 @@ dogstatsd_suse-x64: image: 486234852809.dkr.ecr.us-east-1.amazonaws.com/datadog-agent-builders/suse_x64:latest tags: [ "runner:main", "size:large" ] script: + # remove artifacts from previous pipelines that may come from the cache + - rm -rf $OMNIBUS_PACKAGE_DIR/* # Artifacts and cache must live within project directory but we run omnibus # from the GOPATH (see above). We then call `invoke` passing --base-dir, # pointing to a gitlab-friendly location.