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

How can I get Artifact name ?

Qau Marco
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!
October 17, 2022

I want to get the  Artifact name, but I dont know ?

where can I get it?or Artifact name is a variable ?

1 answer

0 votes
Eduardo Alvarenga
Atlassian Team
Atlassian Team members are employees working across the company in a wide variety of roles.
October 17, 2022

Hello @Qau Marco,

Can you be more specific about when you want the artifact names to be identifiable?

Is that during a build run? From the results? Or maybe in the configuration? Via API? SQL?

Perhaps you need to elaborate on your issue a bit more so we can get there.

Thank you,

Eduardo Alvarenga
Atlassian Support APAC 

--please don't forget to Accept the answer if the reply is helpful-- 

Qau Marco
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!
October 17, 2022

thank you for answer。

In my deploy task。

setup 1. (auto created)

Clean working directory task

setup 2.  (auto created)

Artifact download configuration

Destination path : /tmp

setup 3. 

Script configuration

unzip /tmp/ ${name}.jar 

 

I want to know the Artifact ${name } in setup 2 for me to unzip it .

Eduardo Alvarenga
Atlassian Team
Atlassian Team members are employees working across the company in a wide variety of roles.
October 17, 2022

Hello @Qau Marco

When configuring a Job's build artifact, in a Plan, you are expected to use an Ant File Copy pattern to match the desired file.

The "artifact name" will depend on the Copy Pattern you have used to create the artifact. If the Ant regex matches multiple files, they will be included as part of that artifact as individual files.

Once you add an Artifact Download task to your Deployment environment, it will download any files that match that Artifact regex and put them in your work directory. You need to verify the Copy pattern you have used on your Build and unzip the file(s) accordingly.

Best regards,

Eduardo Alvarenga
Atlassian Support APAC

--please don't forget to Accept the answer if the reply is helpful-- 

Suggest an answer

Log in or Sign up to answer
TAGS
AUG Leaders

Atlassian Community Events