forked from applitools/tutorial-images-javascript
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathJenkinsfile
More file actions
49 lines (44 loc) · 1.37 KB
/
Copy pathJenkinsfile
File metadata and controls
49 lines (44 loc) · 1.37 KB
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
@Library('sharedlibs') _
pipeline {
agent any
tools { nodejs 'Node16.6.1' } // Pick your node version between 8, 10, 12, or 14
stages {
stage('Hello') {
steps {
echo 'Hello World'
}
}
stage('init') {
steps {
script {
demo = load "testing.groovy"
demo.checkout()
}
message("inside applitools sharedlib + init stage!")
}
}
stage('build') {
steps {
script {
demo.cleanInstall()
demo.echo();
demo.checkDirectory();
}
}
}
stage('test') {
steps{
script {
writeFile file: "./.applitools/BATCH_ID", text: "TICKET41806"
sh "ls -l ./.applitools/BATCH_ID"
sh "cat ./.applitools/BATCH_ID"
sh "ls -ltr ./.*"
}
Applitools(applitoolsApiKey: 'aSDUdmvAP1IwKVLmI996KxOk6MT3a2ZRaDGWRrn8Xh00110', notifyByCompletion: false, serverURL: 'https://eyes.applitools.com', ) {
message("Running applitools test")
ExternalGroovy()
}
}
}
}
}