Rajesh Vekariya
Rajesh Vekariya

Reputation: 370

How to manually add artifacts in jenkins?

I am using shell script to create a build but that falls outside of the Jenkins Directory and so I am unable to add it as Artifact. Thank you.

Upvotes: 4

Views: 6682

Answers (1)

Durai Amuthan.H
Durai Amuthan.H

Reputation: 32320

You can just copy the .ipa file to jenkins workspace using shell command and thereby you can add the file as Artifact

1.Add a build step to execute the shell command

enter image description here

2.Enter the shell command to copy the file from outside to Jenkins workspace

enter image description here

Here $WORKSPACE is Predefined environment variable of JENKINS which has the path of jenkins workspace and $PathToIpa is the variable created by you which should have the path of the ipa file

  1. You have to archive the file as Artifact so go to "Add post-build action" and choose "Archive the artifacts"

enter image description here

4.In the files to archive you can give name of the file or else you can do wild card selection also.

enter image description here

Hope this helps

Upvotes: 3

Related Questions