# Appium setting up with Jenkins CI Guidelines

**URL:** <https://discuss.appium.io/t/appium-setting-up-with-jenkins-ci-guidelines/9877>\
**Category:** Tutorials/Documentation\
**Created:** [April 27, 2016, 8:04am UTC](https://discuss.appium.io/t/appium-setting-up-with-jenkins-ci-guidelines/9877 "2016-04-27T08:04:32Z")\
**Posts on this page:** 4\
**Page:** 1

<div class="post-metadata">

**Author:** ![Priyank\_Shah](https://discuss.appium.io/user_avatar/discuss.appium.io/priyank_shah/32/5628_2.png) [@Priyank\_Shah](https://discuss.appium.io/u/Priyank_Shah)\
**Post date:** [April 27, 2016, 8:04am UTC](https://discuss.appium.io/t/appium-setting-up-with-jenkins-ci-guidelines/9877/1 "2016-04-27T08:04:32Z")

</div>

The purpose of drafting this post, is to share my learning. I believe this is the beauty of this forum that people share learning and resolved their queries. This is just a small attempt from side to share my experience with Jenkins.

**Why CI?**  
Already many of you know the answer, any automation suite does not add its real value unless its successfully attached to continuous build systems. And we already know Jenkins is great tools to make this possible.

**Integration with Jenkins Approaches:**

**Approach 1: Run automation with Android/IOS development builds (the node could be Jenkins slave or master).**  
In this approach, Jenkins automation job triggers on same machine to which it triggers Android/IOS development build.  
Here, automation suites use the same Xcode and Android configuration which already used by development builds.  
 ![](https://discuss.appium.io/uploads/default/original/2X/5/5b1b73949dbc36694eb023251042e2dd2e6e6280.png)

**Approach 2: Run automation on Jenkins slave, separate from Android/IOS development builds**  
This approach is more structured, and keep automation job on separate node. but this is more difficult approach as compare to previous one. Below are the challenges you may face.

- Setting up slave node to Jenkins (Below are some useful links), ensure that you already exchange public key with master node.  
[https://wiki.jenkins-ci.org/display/JENKINS/Step+by+step+guide+to+set+up+master+and+slave+machines](https://wiki.jenkins-ci.org/display/JENKINS/Step+by+step+guide+to+set+up+master+and+slave+machines)  
[http://www.parsed.io/setup-a-mac-slave-for-jenkins/](http://www.parsed.io/setup-a-mac-slave-for-jenkins/)

- Setting up Android SDK and Xcode, ensure that all installation carried out at global location (/Applications or /opt or /etc)

- Installed Provisioning profile and developer certificate should be same as Jenkins master node

- In order to run automation on slave, the required artifacts needs to be copied from Android/IOS development builds. Jenkins already have plug in: [https://wiki.jenkinsci.org/display/JENKINS/Copy+Artifact+Plugin](https://wiki.jenkinsci.org/display/JENKINS/Copy+Artifact+Plugin)

 ![](https://discuss.appium.io/uploads/default/original/2X/f/f76f3b78deb04a87af2fd7347530876ea60e8d34.png)

Hope this helps, who is trying to integrate automation with Jenkins.  
Please let me know if anyone has suggestions or doubts.

Thanks,  
Priyank Shah

---

<div class="post-metadata">

**Author:** ![sampadrout](https://discuss.appium.io/user_avatar/discuss.appium.io/sampadrout/32/7236_2.png) [@sampadrout](https://discuss.appium.io/u/sampadrout)\
**Post date:** [November 6, 2018, 7:29pm UTC](https://discuss.appium.io/t/appium-setting-up-with-jenkins-ci-guidelines/9877/2 "2018-11-06T19:29:33Z")

</div>

When I am trying to run iOS test suite from jenkins, it says Carthage binary not found. Here my Mac machine is the slave. Any help on how to define Carthage binaries in jenkins?

---

<div class="post-metadata">

**Author:** ![Mahantesh\_Hadimani](https://discuss.appium.io/user_avatar/discuss.appium.io/mahantesh_hadimani/32/6293_2.png) [@Mahantesh\_Hadimani](https://discuss.appium.io/u/Mahantesh_Hadimani)\
**Post date:** [September 2, 2019, 9:15am UTC](https://discuss.appium.io/t/appium-setting-up-with-jenkins-ci-guidelines/9877/3 "2019-09-02T09:15:52Z")

</div>

follow below post for appium configuration with Jenkins server:

> **[How to Configure & Run Appium Test script through Jenkins Server](https://mahantesh-hadimani.blogspot.com/2019/09/how-to-configure-run-appium-test-script.html)**
>
> How to Configure & Run Appium Test script through Jenkins Server: I have breakdown the whole Appium configuration with Jenkins as high-level steps as below:
> 
>  
> 
> Create Maven Project
> Add Tests to Maven Project
> Install Jenkins
> Configure the Jenkins...

---

<div class="post-metadata">

**Author:** ![chirag-farfetch](https://discuss.appium.io/user_avatar/discuss.appium.io/chirag-farfetch/32/7179_2.png) [@chirag-farfetch](https://discuss.appium.io/u/chirag-farfetch)\
**Post date:** [April 4, 2020, 10:40pm UTC](https://discuss.appium.io/t/appium-setting-up-with-jenkins-ci-guidelines/9877/4 "2020-04-04T22:40:11Z")

</div>

i have the same issue. where you able to resolve this?
