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

1 vote
Thomas Peters February 6, 2024

solved using 

$env:BITBUCKET_TAG

Suggest an answer

Log in or Sign up to answer
DEPLOYMENT TYPE
CLOUD
TAGS
AUG Leaders

Atlassian Community Events