# About JenkinsFile

**URL:** <https://forum.katalon.com/t/about-jenkinsfile/12658>\
**Category:** Integrations\
**Tags:** jenkins, integrations, katalon-studio\
**Created:** [August 15, 2018, 8:28pm UTC](https://forum.katalon.com/t/about-jenkinsfile/12658 "2018-08-15T20:28:25Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![Dejan\_Dzodan](https://avatars.discourse-cdn.com/v4/letter/d/94ad74/32.png) [@Dejan\_Dzodan](https://forum.katalon.com/u/Dejan_Dzodan)\
**Post date:** [August 15, 2018, 8:28pm UTC](https://forum.katalon.com/t/about-jenkinsfile/12658/1 "2018-08-15T20:28:25Z")

</div>

We are using Katalon, GitHub and Jenkins in MultiBranch Pipeline Jenkins Job.  
Part of all of that is JenkinsFile.  
I need to make changes to it.  
However I am not sure can I and should I use Katalon Studio for that?

---

<div class="post-metadata">

**Author:** ![Rasko\_Pjesivac](https://avatars.discourse-cdn.com/v4/letter/r/eb8c5e/32.png) [@Rasko\_Pjesivac](https://forum.katalon.com/u/Rasko_Pjesivac)\
**Post date:** [August 28, 2018, 7:59pm UTC](https://forum.katalon.com/t/about-jenkinsfile/12658/2 "2018-08-28T19:59:48Z")

</div>

> Dejan Dzodan said:
> 
> We are using Katalon, GitHub and Jenkins in MultiBranch Pipeline Jenkins Job.  
> Part of all of that is JenkinsFile.  
> I need to make changes to it.  
> However I am not sure can I and should I use Katalon Studio for that?

You can and I guess you should 🙂

The way to fetch your test code from github would be something like this

```
stage ('Fetch Test Code') {

  steps { 

   sh "git clone https://github.com/katalon-studio/docker-images-samples.git"

   print "Place holder for Fetching Test Code from github"

  }

}  

```

The way to pull docker image, execute tests, and upload results back would be something like this  
(run\_chrome.sh is the same or similar to the one provided with Katalon Docker sample on Github)

```
stage('Run tests') {

  steps {

    print " automatic test"

    sh """

         "sudo docker pull katalonstudio/katalon; 

        sudo chmod +x ./ABCTest/run_chrome.sh; 

        sudo ./ABCTest/run_chrome.sh " ;  

        """;

  }

  post {

    always {

     sh """

      mkdir testresult;

      scp -i ${env.SSH\_KEY\_ID}.pem -o ConnectTimeout=60 -o StrictHostKeyChecking=no -p host@${demo\_instance\_IP}:~/reports/chrome/JUnit_Report.xml testresult;  

     """

      junit 'testresult/*.xml'

    }

  } 

}

```
