infrastructure test

Used only for testing that the Jenkins Project infrastructure works correctly for incrementals, release and mirroring.

Note
Anyone can request access to this plugin via repository-permission-updater if they’re working in this area.

Testing jenkins-infra/pipeline-library pull request changes

By opening a pull request on this repos with the following content, you’ll be able to check your changes on ci.jenkins.io shared pipeline library:

--- jenkins-infra-test-plugin/Jenkinsfile
+++ jenkins-infra-test-plugin/Jenkinsfile
@@ -1,3 +1,4 @@
+ @Library('pipeline-library@pull/<pull-request-number>/head') _
  buildPlugin(
    useContainerAgent: true,
    configurations: [
      [platform: 'linux', jdk: 25],
      [platform: 'windows', jdk: 17],
  ])

Simulating test failures

The FailureSimulationTest#testFailureSimulation test can be used to verify that CI pipelines correctly handle test failures and JUnit reports.

By default, the test passes. To deliberately fail it, pass the simulateTestFailure Maven system property:

mvn test -DsimulateTestFailure=true