Forum Discussion

almmatt's avatar
almmatt
Contributor
9 years ago
Solved

GitHub & Jenkins integration with TestComplete & TestExecute

Hello everyone, I have implemented source code control through GitHub with TestComplete. My problem/question is in regards to Jenkins and TestExecute on a test slave machine.

 

This is what I've done so far:

1. I have implemented GitHub with TestComplete (using Msysgit and TortoiseGit)
2. My TestComplete project has been uploaded to GitHub
3. Jenkins has the GitHub Authentication plugin (configured to my account)
4. Jenkins has the GitHub plugin

 

I want to be able to pull the latest copy of the TestComplete project to the machine(s) running TestExecute. How do I accomplish this task? Does Jenkins support this or do I have to run some type of command line on the machine beforehand to prep the project? I really just need some direction on the best way to accomplish this task. I'm not the most familiar with Git(Hub) and how this would/should work.

 

Thanks for your help!

Matt

  • almmatt's avatar
    almmatt
    9 years ago

    Tanya,

     

    Thanks for your response. I was able to complete this task in Jenkins by modifying my existing Jenkins projects by choosing "Git" from the Source Code Management radio options, filling in my Github clone URL and providing my credentials. After this was done, I specified a hard-coded workspace for Jenkins to clone the Github repository to. Then, in the TestComplete seciton of the project I provided the path to the project that was cloned to the workspace I defined.

     

    Hopefully that's enough of an explanation to help others!

     

    Matt

2 Replies

  • TanyaYatskovska's avatar
    TanyaYatskovska
    SmartBear Alumni (Retired)

    Hi Almmatt,

     

    As far as I know, in Job, you can add a special step to synchronize your workspace with a repository. Thus, you need to set up this step so that TestExecute could get the stored data.

    • almmatt's avatar
      almmatt
      Contributor

      Tanya,

       

      Thanks for your response. I was able to complete this task in Jenkins by modifying my existing Jenkins projects by choosing "Git" from the Source Code Management radio options, filling in my Github clone URL and providing my credentials. After this was done, I specified a hard-coded workspace for Jenkins to clone the Github repository to. Then, in the TestComplete seciton of the project I provided the path to the project that was cloned to the workspace I defined.

       

      Hopefully that's enough of an explanation to help others!

       

      Matt