-
Notifications
You must be signed in to change notification settings - Fork 4
/
Copy pathJenkinsfile_GitHub
104 lines (104 loc) · 5.78 KB
/
Jenkinsfile_GitHub
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
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
pipeline {
agent { label 'QualIT-win' }
stages {
stage('Clean workspace') {
steps {
cleanWs()
}
}
stage('Checkout') {
steps {
checkout scm
}
}
stage('Deploy to GitHub') {
steps {
bat 'if exist ..\\qualit-examples rmdir /s /q ..\\qualit-examples'
bat 'if exist ..\\qualit-github rmdir /s /q ..\\qualit-github'
dir('../qualit-examples') {
bat 'git clone https://gitlab.appline.ru/qualit/examples/db-example.git'
bat 'git clone https://gitlab.appline.ru/qualit/examples/multimodule-example.git'
bat 'git clone https://gitlab.appline.ru/qualit/examples/rest-api-example.git'
bat 'git clone https://gitlab.appline.ru/qualit/examples/soft-assert-example.git'
bat 'git clone https://gitlab.appline.ru/qualit/examples/testit-example.git'
bat 'git clone https://gitlab.appline.ru/qualit/examples/web-drivers-example.git'
bat 'git clone https://gitlab.appline.ru/qualit/examples/web-example.git'
bat 'git clone https://gitlab.appline.ru/qualit/examples/winium-example.git'
bat 'git clone https://gitlab.appline.ru/qualit/examples/junit-example.git'
}
dir('../qualit-github') {
bat 'git clone https://github.com/IBSCorp/Chameleon.git'
bat 'git clone https://github.com/IBSCorp/db-example.git'
bat 'git clone https://github.com/IBSCorp/multimodule-example.git'
bat 'git clone https://github.com/IBSCorp/rest-api-example.git'
bat 'git clone https://github.com/IBSCorp/soft-assert-example.git'
bat 'git clone https://github.com/IBSCorp/testit-example.git'
bat 'git clone https://github.com/IBSCorp/web-drivers-example.git'
bat 'git clone https://github.com/IBSCorp/web-example.git'
bat 'git clone https://github.com/IBSCorp/winium-example.git'
bat 'git clone https://github.com/IBSCorp/junit-example.git'
dir('../qualit-github/Chameleon') {
bat 'xcopy ..\\..\\qualit-github-deploy ..\\Chameleon /s /e /y'
bat 'git add .'
bat 'git commit -m "Merge branch ' + env["Branch"] + ' into main"'
bat 'git push'
}
dir('../qualit-github/db-example') {
bat 'xcopy ..\\..\\qualit-examples\\db-example ..\\db-example /s /e /y'
bat 'git add .'
bat 'git commit -m "Merge branch ' + env["Branch"] + ' into main"'
bat 'git push'
}
dir('../qualit-github/multimodule-example') {
bat 'xcopy ..\\..\\qualit-examples\\multimodule-example ..\\multimodule-example /s /e /y'
bat 'git add .'
bat 'git commit -m "Merge branch ' + env["Branch"] + ' into main"'
bat 'git push'
}
dir('../qualit-github/rest-api-example') {
bat 'xcopy ..\\..\\qualit-examples\\rest-api-example ..\\rest-api-example /s /e /y'
bat 'git add .'
bat 'git commit -m "Merge branch ' + env["Branch"] + ' into main"'
bat 'git push'
}
dir('../qualit-github/soft-assert-example') {
bat 'xcopy ..\\..\\qualit-examples\\soft-assert-example ..\\soft-assert-example /s /e /y'
bat 'git add .'
bat 'git commit -m "Merge branch ' + env["Branch"] + ' into main"'
bat 'git push'
}
dir('../qualit-github/testit-example') {
bat 'xcopy ..\\..\\qualit-examples\\testit-example ..\\testit-example /s /e /y'
bat 'git add .'
bat 'git commit -m "Merge branch ' + env["Branch"] + ' into main"'
bat 'git push'
}
dir('../qualit-github/web-drivers-example') {
bat 'xcopy ..\\..\\qualit-examples\\web-drivers-example ..\\web-drivers-example /s /e /y'
bat 'git add .'
bat 'git commit -m "Merge branch ' + env["Branch"] + ' into main"'
bat 'git push'
}
dir('../qualit-github/web-example') {
bat 'xcopy ..\\..\\qualit-examples\\web-example ..\\web-example /s /e /y'
bat 'git add .'
bat 'git commit -m "Merge branch ' + env["Branch"] + ' into main"'
bat 'git push'
}
dir('../qualit-github/winium-example') {
bat 'xcopy ..\\..\\qualit-examples\\winium-example ..\\winium-example /s /e /y'
bat 'git add .'
bat 'git commit -m "Merge branch ' + env["Branch"] + ' into main"'
bat 'git push'
}
dir('../qualit-github/junit-example') {
bat 'xcopy ..\\..\\qualit-examples\\junit-example ..\\junit-example /s /e /y'
bat 'git add .'
bat 'git commit -m "Merge branch ' + env["Branch"] + ' into main"'
bat 'git push'
}
}
}
}
}
}