Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
8 changes: 8 additions & 0 deletions Jenkinsfile
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,10 @@ if(env.BRANCH_NAME == "master") {
}

env.MAVEN_NTP = true
// Run pct tests on a limited set of repositories and their plugin(s) if not empty
// Expected list item format: jenkinsci/<repo-name>, tab, <coma separated plugin(s)>
// Ex: 'jenkinsci/pipeline-stage-view-plugin\tpipeline-rest-api,pipeline-stage-view'
Comment on lines +9 to +10

Copy link
Copy Markdown
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Using \t instead of in the example to avoid unexpected tab conversion into space on copy/paste.

A proper tab works too ofc.

final String[] limitedPluginSet = []

properties([
disableConcurrentBuilds(abortPrevious: true),
Expand Down Expand Up @@ -76,6 +80,10 @@ stage('prep') {
fullTestMarkerFile = fileExists 'full-test'
weeklyTestMarkerFile = fileExists 'weekly-test'
def plugins = readFile('target/plugins.txt').split('\n')
if (limitedPluginSet) {
unstable 'Running on a limited plugin set'
plugins = limitedPluginSet
}
pluginsByRepository = parsePlugins(plugins)

lines = readFile('target/lines.txt').split('\n')
Expand Down