Commit 66adcd22 authored by Ben Cooksley's avatar Ben Cooksley

Rename a few things, and otherwise prepare for this to be initially tested!

parent 0bada478
// Make sure we accept the parameters we will need...
properties([
parameters([
string(name: 'DIFF_ID', trim: false, defaultValue: '', description: ''),
string(name: 'PHID', trim: false, defaultValue: '', description: ''),
string(name: 'STAGING_URI', trim: false, defaultValue: '', description: ''),
string(name: 'STAGING_REF', trim: false, defaultValue: '', description: '')
])
])
// First things first: make sure our job exists!
jobDsl targets: 'pre-review/seed-jobs.groovy'
// Now trigger the individual job we want
build job: "Reviews/${params.DIFF_ID}", parameters: [string(name: 'DIFF_ID', value: params.DIFF_ID), string(name: 'PHID', value: params.PHID)]
[
{"name": "Craft Setup Deploy"},
{"name": "Pre Review CI"},
{"name": "Extragear craft master SUSEQt5.9"}
]
......@@ -106,7 +106,7 @@ timestamps {
}
// Finally, we inform Phabricator of everything that has occurred
step([$class: 'PhabricatorNotifier', commentOnSuccess: true, commentWithConsoleLinkOnFailure: true])
//step([$class: 'PhabricatorNotifier', commentOnSuccess: true, commentWithConsoleLinkOnFailure: true])
}
}
......@@ -19,7 +19,7 @@ def projectName = reviewStagingURL.tokenize('/').last()
def jobName = "Reviews/${reviewID}"
// Read in the necessary Pipeline template
def pipelineTemplate = readFileFromWorkspace("pre-review/pipeline.template")
def pipelineTemplate = readFileFromWorkspace("pre-review/review-build.template")
// Now we can construct our Pipeline script
// We append a series of variables to the top of it to provide a variety of useful information to the otherwise templated script
......@@ -37,6 +37,12 @@ def pipelineScript = """
// Actually create the job now
pipelineJob( jobName ) {
properties {
// In order to be able to report back to PHabricator, we'll need to know a few things
// Like the Differential ID number (we technically already do, but the Phabricator plugin expects to see it as a parameter)
parameters {
stringParam('DIFF_ID')
stringParam('PHID')
}
// We don't want to keep build results forever
// We'll set it to keep the last 25 builds and discard everything else
buildDiscarder {
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment