Skip to content

Commit cc55600

Browse files
committed
Adopt waluigi 4
1 parent 1b8570b commit cc55600

File tree

1 file changed

+6
-31
lines changed

1 file changed

+6
-31
lines changed

Jenkinsfile

Lines changed: 6 additions & 31 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
#!groovy
2-
@Library('waluigi@v3.2.0') _
2+
@Library('waluigi@v4.0.0') _
33

44
standardProperties()
55

@@ -27,37 +27,12 @@ node("primary") {
2727
sh "yarn lint"
2828
}
2929

30-
stage("test") {
31-
def permutations = [
32-
[ name: "win10Chrome", os: "windows-10", browser: "chrome" ],
33-
[ name: "win10FF", os: "windows-10", browser: "firefox" ]
34-
// [ name: "win10Edge", os: "windows-10", browser: "MicrosoftEdge" ]
35-
]
30+
def platforms = [
31+
[ name: "win10Chrome", os: "windows-10", browser: "chrome" ],
32+
[ name: "win10FF", os: "windows-10", browser: "firefox" ]
33+
]
3634

37-
def processes = [:]
38-
39-
for (int i = 0; i < permutations.size(); i++) {
40-
def permutation = permutations.get(i);
41-
def name = permutation.name;
42-
processes[name] = {
43-
node("bedrock-" + permutation.os) {
44-
echo "Clean workspace"
45-
cleanWs()
46-
47-
echo "Checkout"
48-
checkout scm
49-
50-
echo "Installing tools"
51-
yarnInstall()
52-
53-
echo "Platform: browser tests for " + permutation.name
54-
bedrockTests(permutation.name, permutation.browser, "src/test/ts/browser")
55-
}
56-
}
57-
}
58-
59-
parallel processes
60-
}
35+
bedrockBrowsers(platforms: platforms, testDirs: [ "src/test/ts/browser" ])
6136

6237
stage("publish") {
6338
sh "yarn beehive-flow publish"

0 commit comments

Comments
 (0)