diff options
author | Maxim Kuvyrkov <maxim.kuvyrkov@linaro.org> | 2018-12-06 11:25:32 +0000 |
---|---|---|
committer | Maxim Kuvyrkov <maxim.kuvyrkov@linaro.org> | 2018-12-07 12:33:38 +0000 |
commit | 982f2ba5bb064ba34c6f194511dae57c49142aa6 (patch) | |
tree | e12d2810d8c2bf6b299efdb13511ec63e3e54090 /tcwg_kernel-build.sh | |
parent | eedf431a5e900dded2736e16119be6f50d00c601 (diff) |
jenkins-helpers: Add manifest generation logic to convert_args_to_variables
... and re-work bash sourcing logic "@@" to be more flexible / verbose.
The idea is that specifying "%% ./manifest.sh" as the 1st argument
on the command line will cause all subsequent arguments to be logged
in ./manifest.sh. A reproducer build then can include "@@ ./manifest.sh"
and reproduce the original build.
Build environment that is not on the command line (e.g., repo revisions)
can be added to the manifest with help of "manifest_out" helper. E.g.,
command-line argument "--current_rev master" will be logged in manifest as
==
current_rev="master"
==
and then logic in the script can override that with
cat <<EOF | manifest_out
current_rev=$(git rev-parse HEAD)
EOF
thus producing manifest with
==
current_rev="master"
...
current_rev=abc123cab
==
Change-Id: I066be570c08eda4f80f148dccf475d1794eba229
Diffstat (limited to 'tcwg_kernel-build.sh')
-rwxr-xr-x | tcwg_kernel-build.sh | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/tcwg_kernel-build.sh b/tcwg_kernel-build.sh index 9474b4b7..4a6497c8 100755 --- a/tcwg_kernel-build.sh +++ b/tcwg_kernel-build.sh @@ -9,7 +9,10 @@ declare -A config declare -A git_repo declare -A git_branch -convert_args_to_variables "@@gnu-default" "@@llvm-default" "@@linux-default" "$@" +convert_args_to_variables @@ $scripts/tcwg_kernel/gnu-default.sh \ + @@ $scripts/tcwg_kernel/llvm-default.sh \ + @@ $scripts/tcwg_kernel/linux-default.sh \ + "$@" # Execution mode: baseline, jenkins-full, bisect. mode="${mode-baseline}" |