forked from jenkinsci/git-plugin
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Jenkinsfile
59 lines (55 loc) · 1.93 KB
/
Jenkinsfile
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
#!groovy
// Test plugin compatibility to recent Jenkins LTS
// Allow failing tests to retry execution
buildPlugin(jenkinsVersions: [null, '2.107.2'],
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"])
// Include experimental git-client in target dir for ATH
// This Git plugin requires experimental git-client
infra.runMaven(["dependency:copy", "-Dartifact=org.jenkins-ci.plugins:git-client:3.0.0-beta3:hpi", "-DoutputDirectory=target", "-Dmdep.stripVersion=true"])
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