misc: Add script to fetch build artifacts and impersonate jenkins environment
authorKienan Stewart <kstewart@efficios.com>
Tue, 19 Mar 2024 20:06:21 +0000 (16:06 -0400)
committerKienan Stewart <kstewart@efficios.com>
Tue, 19 Mar 2024 20:06:21 +0000 (16:06 -0400)
commit1e65ccd9789590c93a8181ee4d2683e131cd0a20
treee7cf74241d61d1c2efed7745a0212bd56f198d99
parentf81a42222a9e8f638e9fcb016d5476eab24008f8
misc: Add script to fetch build artifacts and impersonate jenkins environment

This is useful to fetch and quickly set up an approximation of the
environment that a jenkins build is run in for the LTTng CI.

Ex:

```
./scripts/jenkins_job_env.py fetch \
  -j lttng-tools_master_linuxbuild \
  -jc
  babeltrace_version=stable-2.0,build=std,conf=agents,liburcu_version=master,platform=deb12-amd64 \
  -b 157 \
  destination_dir
```

The script will download and unpack the archives, rebuilding symlinks
for the shared objects in `archive/deps/build/{lib_dir_arch}`, and
create two scripts to activate and deactivate the typical environment
variables in `destination_dir/{activate,deactivate}`.

Change-Id: I2bfcb213dfc0c066b91c5f70a596c1ec5e5019ff
Signed-off-by: Kienan Stewart <kstewart@efficios.com>
scripts/jenkins_job_env.py [new file with mode: 0755]
This page took 0.022716 seconds and 4 git commands to generate.