Skip to content

Commit

Permalink
STAC-21039 Cannot store deps_deb artifacts, so recreating them on all…
Browse files Browse the repository at this point in the history
… dependent pipeline steps.
  • Loading branch information
LouisParkin committed Apr 10, 2024
1 parent d57ac0f commit 4519b59
Showing 1 changed file with 21 additions and 6 deletions.
27 changes: 21 additions & 6 deletions .gitlab-ci-agent.yml
Original file line number Diff line number Diff line change
Expand Up @@ -184,16 +184,16 @@ deps_deb:
- inv -e deps --verbose
- inv agent.version --major-version $MAJOR_VERSION -u > version.txt
# - cd $GOPATH/pkg && tar czf $CI_PROJECT_DIR/go-pkg.tar.gz . || echo "No go-pkg"
- cd $GOPATH/pkg && tar czf - . | split -b 800M - $CI_PROJECT_DIR/go-pkg.tar.gz.part. || echo "No go-pkg"
- cd $GOPATH/bin && tar czf $CI_PROJECT_DIR/go-bin.tar.gz . || echo "No go-bin"
- cd $CI_PROJECT_DIR/vendor && tar czf $CI_PROJECT_DIR/vendor.tar.gz . || echo "No vendor"
# - cd $GOPATH/pkg && tar czf - . | split -b 800M - $CI_PROJECT_DIR/go-pkg.tar.gz.part. || echo "No go-pkg"
# - cd $GOPATH/bin && tar czf $CI_PROJECT_DIR/go-bin.tar.gz . || echo "No go-bin"
# - cd $CI_PROJECT_DIR/vendor && tar czf $CI_PROJECT_DIR/vendor.tar.gz . || echo "No vendor"
artifacts:
<<: *artifacts_expire_in
paths:
- $CI_PROJECT_DIR/version.txt
- $CI_PROJECT_DIR/go-pkg.tar.gz.part.*
- $CI_PROJECT_DIR/go-bin.tar.gz
- $CI_PROJECT_DIR/vendor.tar.gz
# - $CI_PROJECT_DIR/go-pkg.tar.gz.part.*
# - $CI_PROJECT_DIR/go-bin.tar.gz
# - $CI_PROJECT_DIR/vendor.tar.gz

retry:
max: 2
Expand Down Expand Up @@ -274,7 +274,10 @@ unit_tests:
needs:
- deps_deb
script:
- go clean -modcache
- *rename_datadog_stackvista
- conda activate $CONDA_ENV
- inv -e deps --verbose
# We run inv deps again because /go/bin is not cached and we need binaries like golint, misspell
- inv deps
- inv -e agent.build --race --major-version $MAJOR_VERSION --python-runtimes $PYTHON_RUNTIMES
Expand All @@ -300,7 +303,10 @@ filename_linting:
needs:
- deps_deb
script:
- go clean -modcache
- *rename_datadog_stackvista
- conda activate $CONDA_ENV
- inv -e deps --verbose
- inv -e lint-filenames
rules:
- when: on_success
Expand Down Expand Up @@ -331,7 +337,10 @@ build_binaries:
needs:
- deps_deb
script:
- go clean -modcache
- *rename_datadog_stackvista
- conda activate $CONDA_ENV
- inv -e deps --verbose
- inv -e dogstatsd.build --static --major-version $MAJOR_VERSION
- inv -e rtloader.make
- inv -e rtloader.install
Expand All @@ -352,7 +361,10 @@ build_cluster_agent:
needs:
- deps_deb
script:
- go clean -modcache
- *rename_datadog_stackvista
- conda activate $CONDA_ENV
- inv -e deps --verbose
- inv -e cluster-agent.build
- ls -la $CI_PROJECT_DIR/bin/
artifacts:
Expand Down Expand Up @@ -385,7 +397,10 @@ build_deb:
# cloning in omnibus and operations on datadog-agent
- mv $CI_PROJECT_DIR/.omnibus /omnibus || mkdir -p /omnibus

- go clean -modcache
- *rename_datadog_stackvista
- conda activate $CONDA_ENV
- inv -e deps --verbose
- inv agent.version --major-version $MAJOR_VERSION
- cat version.txt || true
- source ./.gitlab-scripts/setup_artifactory.sh
Expand Down

0 comments on commit 4519b59

Please sign in to comment.