Skip to content

Commit

Permalink
[JENKINS-50621] First Implementation
Browse files Browse the repository at this point in the history
  • Loading branch information
raul-arabaolaza committed Apr 26, 2018
1 parent a81c655 commit 75fdb0d
Show file tree
Hide file tree
Showing 2 changed files with 63 additions and 2 deletions.
53 changes: 51 additions & 2 deletions Jenkinsfile
Expand Up @@ -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'],
failFast: false)
findbugs: [run: true, archive: true, unstableTotalAll: '0'],
failFast: false)

def branches = [:]

branches["ATH"] = {
node("docker && highmem") {
deleteDir()
stage("ATH: Checkout") {
dir("git") {
checkout scm
sh "mvn clean package -DskipTests"
dir("target") {
stash name: "localPlugins", includes: "*.hpi"
}
sh "mvn clean"
}
}
def metadataPath = pwd() + "/git/essentials.yml"
stage("Run ATH") {
dir("ath") {
runATH metadataFile: metadataPath
deleteDir()
}
}
}
}
branches["PCT"] = {
node("docker && highmem") {
deleteDir()
env.RUN_PCT_LOCAL_PLUGIN_SOURCES_STASH_NAME = "localPluginsPCT"
stage("PCT: Checkout") {
dir("git") {
checkout scm
}
stash name: "localPluginsPCT"

}
def metadataPath = pwd() + "/git/essentials.yml"

stage("Run PCT") {
dir("pct") {
runPCT metadataFile: metadataPath,
javaOptions: ["-Dorg.slf4j.simpleLogger.log.org.apache.maven.cli.transfer.Slf4jMavenTransferListener=warn"]
deleteDir()
}
}
}
}

parallel branches
12 changes: 12 additions & 0 deletions essentials.yml
@@ -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 75fdb0d

Please sign in to comment.