Hello,
I need a hint how to handle variables in a self hosted runner on Linux, using KAS for setting up a Yocto project.
In my bitbucket-pipeline.yml file I have defined as follows:
definitions:
steps:
- step: &build
name: KAS Build
runs-on: [self.hosted, linux.shell]
script:
- kas checkout build.yml
- source generate_key.sh
- kas build --skip repos_checkout build.yml
The kas build.yml file contains:
My issue: the script generate_key.sh assigns a key to the variable KEY_HEX .
The kas build call should then forward the variable to the bitbake environment via BB_ENV_PASSTHROUGH_ADDITIONS.
But the variable content is not forwarded to bitbake.
My question is: how to export a variable from the script generate_key.sh to kas?
I guess all three calls within the script generate child processes that do not know variables from other.
Thank you very much for any advice!
Regards
Andreas