Create
cancel
Showing results for 
Search instead for 
Did you mean: 
Sign up Log in

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

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 Leaders.
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

Suggest an answer

Log in or Sign up to answer
TAGS
AUG Leaders

Atlassian Community Events