4

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.

Durai Amuthan.H
  • 31,670
  • 10
  • 160
  • 241
Rajesh Vekariya
  • 370
  • 3
  • 7
  • Could you be a little more specific? I understand you want to change the folder where are you creating the artifact instead the workspace folder from your job? what kind of task? – Daniel Hernández Jun 23 '16 at 14:52

1 Answers1

3

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

Durai Amuthan.H
  • 31,670
  • 10
  • 160
  • 241