Skip to content
Permalink
Browse files
Merge pull request #585 from raul-arabaolaza/JENKINS-50621-2
[JENKINS-50621] Essentials Flow - Part 1
  • Loading branch information
MarkEWaite committed May 2, 2018
2 parents 44e9eb0 + b536444 commit 8a007f0861b467b925e5d7eb60771a7b5ca33c1c
Showing 2 changed files with 62 additions and 1 deletion.
@@ -7,5 +7,54 @@
// Test plugin compatibility to latest Jenkins LTS
// Allow failing tests to retry execution
buildPlugin(jenkinsVersions: [null, '2.60.1'],
findbugs: [run:true, archive:true, unstableTotalAll: '0'],
findbugs: [run: true, archive: true, unstableTotalAll: '0'],
failFast: false)

def branches = [:]

branches["ATH"] = {
node("docker && highmem") {
def checkoutGit
stage("ATH: Checkout") {
checkoutGit = pwd(tmp:true) + "/athgit"
dir(checkoutGit) {
checkout scm
infra.runMaven(["clean", "package", "-DskipTests"])
dir("target") {
stash name: "localPlugins", includes: "*.hpi"
}
}
}
def metadataPath = checkoutGit + "/essentials.yml"
stage("Run ATH") {
def athFolder=pwd(tmp:true) + "/ath"
dir(athFolder) {
runATH metadataFile: metadataPath
}
}
}
}
branches["PCT"] = {
node("docker && highmem") {
def metadataPath
env.RUN_PCT_LOCAL_PLUGIN_SOURCES_STASH_NAME = "localPluginsPCT"
stage("PCT: Checkout") {
def checkoutGit = pwd(tmp:true) + "/pctgit"
dir(checkoutGit) {
dir("git") {
checkout scm
}
stash name: "localPluginsPCT", useDefaultExcludes: false
}
metadataPath = checkoutGit + "/git/essentials.yml"
}
stage("Run PCT") {
def pctFolder = pwd(tmp:true) + "/pct"
dir(pctFolder) {
runPCT metadataFile: metadataPath
}
}
}
}

parallel branches
@@ -0,0 +1,12 @@
---
ath:
athRevision: "dad333092159cb368efc2f9869572f0a05d255ac"
tests:
- "GitPluginTest"
- "GitUserContentTest"
- "MultipleScmsPluginTest"
- "WorkflowPluginTest#hello_world_from_git"
- "WorkflowPluginTest#testSharedLibraryFromGithub"
pct:
plugins:
- "git"

0 comments on commit 8a007f0

Please sign in to comment.