Hi there, I have the following job yml
steps:
- command:
- "yarn setup"
- "cd react-native"
- "yarn bitrise-aso-upload-screenshots ${APP_PLATFORM} ${APP_TYPE}"
- "FASTLANE_DIR=$(buildkite-agent meta-data get FASTLANE_DIR)"
- "echo FASTLANE_DIR: ${FASTLANE_DIR}"
- "cd ${FASTLANE_DIR}"
- "FASTLANE_COMMAND=$(buildkite-agent meta-data get FASTLANE_COMMAND)"
- "echo FASTLANE_COMMAND: ${FASTLANE_COMMAND}"
agents:
queue: "v1"
plugins:
- docker#v3.5.0:
mount-ssh-agent: true
image: "languagedrops/buildkite-aso:0.3"
privileged: true
userns: "host"
environment:
- "BUILDKITE"
- "BUILDKITE_JOB_ID"
- "APP_PLATFORM"
- "APP_TYPE"
and inside yarn bitrise-aso-upload-screenshots ${APP_PLATFORM} ${APP_TYPE}
script (which is node js script) I’m trying to set the meta-data values with:
childProcess.execSync(`buildkite-agent meta-data set FASTLANE_DIR "${some value}" --job ${process.env.BUILDKITE_JOB_ID}`)
Unfortunately, it doesn’t work FASTLANE_DIR and FASTLANE_COMMAND are not set.
Could you please advise how to make it work, did I miss something in how I set or get meta-data?