Skip to content
Permalink
Browse files
[JENKINS-50621] First Implementation
  • Loading branch information
raul-arabaolaza committed Apr 26, 2018
1 parent a81c655 commit 75fdb0d0bd86488060caeea6fc41de0a170d4dfd
Showing 2 changed files with 63 additions and 2 deletions.
@@ -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
@@ -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.