The Atlassian Community Forums are currently in read-only mode. We will be relaunching on a new platform on September 22 (read more here). We apologize for the extended downtime. For concerns or questions, please email communitymanagers@atlassian.com. See you on the other side, on the new Atlassian Community Forums! :)

×

Forums

Articles
Create
cancel
Showing results for 
Search instead for 
Did you mean: 

Powershell Script Class

CarlAtCdgems
I'm New Here
I'm New Here
Those new to the Atlassian Community have posted less than three times. Give them a warm welcome!
May 21, 2020

Bamboo version 6.10.4

Powershell version 5.1

I have a Bamboo Task setup as Script Interpreter - Windows PowerShell, Script Location - In Line.

Within the in-line powershell script, I set a few variables, then call .\Test.ps1

After changes are made to the Test.ps1, it is saved, highlighted and run so PS has the updated version in memory.  I need Bamboo to run the new version of Test.ps1 but it is running an old version.  How can I force Bamboo to re-read/re-cache the powershell script?

 

Thanks,

Carl

 

1 answer

Comments for this post are closed

Community moderators have prevented the ability to post new answers.

0 votes
Edwin Kyalangalilwa
Rising Star
Rising Star
Rising Stars are recognized for providing high-quality answers to other users. Rising Stars receive a certificate of achievement and are on the path to becoming Community Champions.
May 26, 2020

Hi @CarlAtCdgems ,

Is the script being sourced from a code repository? If so, then you may want to clean the build directory.

Screen Shot 2020-05-26 at 11.39.52 AM.png

TAGS
AUG Leaders

Atlassian Community Events