Skip to content
This repository has been archived by the owner on Sep 18, 2021. It is now read-only.
Jeremy Poulin edited this page Oct 9, 2018 · 9 revisions

Getting Started

Once the libraries have been installed, you can access the TestUtils object to call into the automated scripts. There are three basic functions: getProvisioningConfig, runTest, and runParallelMultiArchTest.

Installing the Libraries

In your Jenkinsfile, you'll want to add the following block

library(
  changelog: false,
  identifier: "multiarch-ci-libraries@${params.LIBRARIES_REF}",
  retriever: modernSCM([$class: 'GitSCMSource',remote: "${params.LIBRARIES_REPO}"])
)

This assumes you'll be supplying the repository name and URL via the job parameters.

Getting the Provisioning Config

Now that you've installed the libraries, the first thing you'll want to do is fetch the ProvioningConfig object. This object and its options are described in the Provisioning Configuration page.

Running a test with the CI Libraries

The multiarch-ci-libraries provide an API for running your tests through the MAQEAPI variable and its static functions.

Pipeline Steps

Beyond the API for running your tests, the multiarch-ci-libraries also provide users with additional Pipeline Steps that may be useful for a variety of jobs.