forked from katalon-studio/docker-images
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Jenkinsfile
45 lines (39 loc) · 1.38 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
pipeline {
agent any
environment {
KS_VERSION = '6.1.5'
}
stages {
stage ("DO NOT DISABLE THIS STAGE") {
steps {
sh '''
chmod u+x ./build/*.sh
./build/prevent_overwrite_existing_tag.sh $KS_VERSION
'''
}
}
stage ("Build") {
steps {
lock('katalon-docker-images') {
sh 'chmod u+x ./build/*.sh'
sh './build/clean.sh $KS_VERSION'
sh './build/build.sh $KS_VERSION'
sh './build/tag.sh $KS_VERSION'
sh 'chmod u+x ./test/project/*.sh'
sh 'cd ./test/project && ./run_chrome.sh $KS_VERSION'
sh 'cd ./test/project && ./run_chrome_advanced.sh $KS_VERSION'
sh 'cd ./test/project && ./run_firefox.sh $KS_VERSION'
archiveArtifacts '**/*.avi'
withDockerRegistry([ credentialsId: "docker-hub", url: "" ]) {
sh '''
./build/tag.sh $KS_VERSION
./build/push.sh $KS_VERSION
./build/tag.sh latest
./build/push.sh latest
'''
}
}
}
}
}
}