The Bitbar Run-in-Cloud plugin enables easy integration between Jenkins and Bitbar testing.
For further documentation please refer to Bitbar Testing help.
Bitbar Run-in-Cloud (RiC) is a Jenkins plugin to launch your Bitbar test runs directly from a Jenkins job.
To build the RiC plugin simply run Maven at the root of the repo.
Get the latest version of the Bitbar Run-in-Cloud plugin from Jenkins' Plugin Manager. Search for 'Bitbar' and select the plugin for install. All updates are visible in this same place.
Once you have Jenkins properly installed, download the Bitbar Run-in-Cloud Plugin from under ./bin-directory and open your Jenkins main page. Then navigate from Jenkins main menu to Manage Jenkins -> Manage plugins to start configuring your plugins.
Click Advanced -> Upload Plugin to install recently downloaded Bitbar Run-in-Cloud Plugin. After you've installed this plugin, restart Jenkins and get back to start the configuration of this plugin. The plugin adds a new build step that can be used in any Jenkins job to launch builds in Bitbar Cloud and/or Bitbar Private Cloud.
Setup your global API key credentials using Jenkins Credentials Plugin. You can do that by clicking Manage Jenkins -> Manage Credentials -> Jenkins(store) -> Global credentials -> Add Credentials.
Click Manage Jenkins -> Configure System (on top of that list) and you'll find a Bitbar Cloud section where you can choose created credentials and/or change BitBar environment address. Press Authorize button to validate your account details and access.
To get started, you can open existing Jenkins job or create a new one. From the Job Configuration -> Build select Run tests in Bitbar Cloud.
Now you can select your target project (must exist in Bitbar Cloud) and enter the name for your test run. The next ones are the Application and Test where you specify the files that will be uploaded in Bitbar Cloud. If you need to further customize project settings click the "Edit project on Bitbar Cloud website" button and it will open Bitbar Cloud webpage with access to configure your project details.
Jenkins is polling Bitbar Cloud for the results. Test results are fetched from Bitbar Cloud to Jenkins workspace after all your tests are finished.
Bitbar Cloud sends post message to the specified URL when test run is finished. Bitbar Run-in-Cloud Plugin listens these messages in default location and then downloads results when post message arrives. User can change the URL in the following section:
POST message body: testRunId=%s&projectId=%s&status=FINISHED
Note! This requires your HOOK URL is reachable from Internet e.g. Jenkins instance can be reached from Bitbar Cloud.
In addition to hook URL, you can set up specific folder where results and data will be stored, timeout for finalization message (timeout for results) as well as if you want to include screenshots and other graphical data from your test runs.
- Make sure git
origin
points togit@github.com:jenkinsci/testdroid-run-in-cloud-plugin.git
- Maven
settings.xml
should contain
<servers>
<server>
<id>maven.jenkins-ci.org</id>
<username>bitbar</username>
<password>*********</password>
</server>
</servers>
- To release execute
mvn release:prepare release:perform