Skip to content

fedora-ci/jenkins-pipeline-library-agent-image

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

52 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Jenkins JNLP agent for the Fedora CI Jenkins Pipeline Library

This Jenkins agent image contains tools and utilities needed by the Fedora CI Jenkins Pipeline Library.

Tools

/usr/local/bin/tfxunit2junit

This is a simple script which converts TestingFarm XUnit files to the standard JUnit format.

Example usage:

tfxunit2junit testing_farm_xunit.xml > junit.xml

/usr/local/bin/pr2scratch.sh

This is a simple script that tells Koji to scratch-build a pull-request.

Example usage:

pr2scratch.sh koji wait f34-candidate https://src.fedoraproject.org/forks/benzea/rpms/fprintd.git#c194507ad80f189aed086726ccf5e5276e80d761

/usr/local/bin/pullRequest2scratchBuild.sh

This is a simple script which creates a SRPM from a pull request, and then it submits it as scratch-build to Koji. The SRPM has a special name which can be later decoded and mapped back to the original pull request. See the script for more information.

Example usage:

# TODO: maybe use params instead of relying on environment variables
pullRequest2scratchBuild.sh

Development

Building the container image

Pushing to the master branch will automatically trigger a new container image build in quay.io.

The resulting image will have the following name: quay.io/fedoraci/pipeline-library-agent:prototype

NOTE: We use "prototype" tag now so we can iterate and test changes faster. However, in future, the prototype tag will be replaced with a short commit hash.

Tests

tfxunit2junit

To run the test use the tmt tool.

$ tmt run