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: 

Create folder based off of a variable

Thomas Peters
February 6, 2024

Using a self host windows runner, I am having difficulty creating a folder based off of a version stored in a variable. EG:

 

script:
            - VERSION=$(mvn help:evaluate -Dexpression=project.version -q -DforceStdout)
            - New-Item -Path "A\Path\" -ItemType "directory" -Name $VERSION
            - xcopy target A\Path\\${ $VERSION }\ /E /H /C /I
I am not sure of the syntax to use and I come from a DevOps Pipeline background

 

1 answer

Comments for this post are closed

Community moderators have prevented the ability to post new answers.

1 vote
Thomas Peters
February 6, 2024

solved using 

$env:BITBUCKET_TAG
DEPLOYMENT TYPE
CLOUD
TAGS
AUG Leaders

Atlassian Community Events