forked from katalon-studio/docker-images
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Jenkinsfile
47 lines (42 loc) · 1.7 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
pipeline {
agent any
environment {
KS_VERSION = '7.2.1'
}
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') {
withCredentials([string(credentialsId: 'katalon-api-key', variable: 'API_KEY')]) {
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 $API_KEY'''
sh '''cd ./test/project && ./run_chrome_root.sh $KS_VERSION $API_KEY'''
sh '''cd ./test/project && ./run_chrome_advanced.sh $KS_VERSION $API_KEY'''
sh '''cd ./test/project && ./run_firefox.sh $KS_VERSION $API_KEY'''
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
'''
}
}
}
}
}
}
}