You're on your way to the next level! Join the Kudos program to earn points and save your progress.
Level 1: Seed
25 / 150 points
Next: Root
1 badge earned
Challenges come and go, but your rewards stay with you. Do more to earn more!
What goes around comes around! Share the love by gifting kudos to your peers.
Keep earning points to reach the top of the leaderboard. It resets every quarter so you always have a chance!
Join now to unlock these features and more
I've been having a time and a half trying to get a variable set within my plan.
On the fly I am compiling and packaging something up and I've parsed its name from a script. I want to use that name in a different task. Looking online it seems like the way to do this is writing what I need to file and using "Inject Bamboo Variables".
I have gotten to this point and I can use the "Dump Variables to log" task and I can see it inside there
in the log:
`Injected variable bamboo.inject.PACKAGE=pkg.zip in LOCAL scope`
in the dump:
`key: [inject.PACKAGE] value: [pkg.zip ] type: CUSTOM`
However when I try to call it in a inline shell script, I can't seem to access it and it comes back as empty. I've tried everything I can think of in terms of calling it:
- echo %inject.PACKAGE%
- echo %bamboo.inject.PACKAGE%
- echo $inject.package
- echo ${inject.package}
to name a few
can anyone help me and tel me what i am doing wrong?
I think the correct form (in Unix shell scripts) is $bamboo_inject_PACKAGE.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.