@@ -16,20 +16,19 @@ pipeline {
16
16
17
17
stages {
18
18
stage('Build package') {
19
- options { timeout(time:20 ,unit:'MINUTES') }
19
+ options { timeout(time:30 ,unit:'MINUTES') }
20
20
steps {
21
- podTemplate(name: 'pack-server-ubuntu' , label: 'pack-mcu- server-ubuntu' ,
21
+ podTemplate(name: 'pack-server-ubuntu-'+env.GIT_BRANCH , label: 'pack-server-ubuntu-'+env.GIT_BRANCH ,
22
22
volumes: [
23
- persistentVolumeClaim(claimName: 'stability-package',mountPath: '/root/stabilityPackage',readOnly: false),
24
23
persistentVolumeClaim(claimName: 'ubuntu-package',mountPath: '/root/ubuntu_package',readOnly: false),
25
- persistentVolumeClaim(claimName: 'webrtc79ubuntu',mountPath: '/root/owt-server/third_party/webrtc-m79',readOnly: false)
24
+ persistentVolumeClaim(claimName: 'webrtc79ubuntu',mountPath: '/root/owt-server/third_party/webrtc-m79',readOnly: false)
26
25
],
27
26
containers: [
28
- containerTemplate(name: 'pack-on-ubuntu-server ', image: "$env.ubuntu_build_images", ttyEnabled: true, alwaysPullImage: true, privileged: true, resourceRequestCpu: '5000m', resourceLimitCpu: '6000m', network: 'host' , command: 'cat')
27
+ containerTemplate(name: 'build-images ', image: "$env.ubuntu_build_images", ttyEnabled: true, alwaysPullImage: true, privileged: true, resourceRequestCpu: '5000m', resourceLimitCpu: '6000m' , command: 'cat')
29
28
]){
30
- node ('pack-mcu- server-ubuntu' ) {
31
- container ('pack-on-ubuntu-server ') {
32
- sh "/root/startRun.sh $env.gitlab_username $env.gitlab_password ubuntu build owt-server $env.GIT_BRANCH $env.GIT_COMMIT $env.CHANGE_ID"
29
+ node ('pack-server-ubuntu-'+env.GIT_BRANCH ) {
30
+ container ('build-images ') {
31
+ sh "/root/startRun.sh * * ubuntu build owt-server $env.GIT_BRANCH $env.GIT_COMMIT $env.CHANGE_ID"
33
32
}
34
33
}
35
34
}
@@ -46,22 +45,16 @@ pipeline {
46
45
parallel {
47
46
stage('ConferenceClient API 1') {
48
47
steps {
49
- podTemplate(name: 'api-test- server-ubuntu' , label: 'api-test- server-ubuntu' , cloud: 'kubernetes',
48
+ podTemplate(name: 'api-server-ubuntu-'+env.GIT_BRANCH , label: 'api-server-ubuntu-'+env.GIT_BRANCH , cloud: 'kubernetes',
50
49
volumes: [
51
50
persistentVolumeClaim(claimName: 'ubuntu-package',mountPath: '/root/ubuntu_package',readOnly: false),
52
- persistentVolumeClaim(claimName: 'ubuntu-audio-lib',mountPath: '/root/audio_lib',readOnly: false),
53
- persistentVolumeClaim(claimName: 'ubuntu-recording-lib',mountPath: '/root/recording_lib',readOnly: false),
54
- persistentVolumeClaim(claimName: 'ubuntu-sip-lib',mountPath: '/root/sip_lib',readOnly: false),
55
- persistentVolumeClaim(claimName: 'ubuntu-streaming-lib',mountPath: '/root/streaming_lib',readOnly: false),
56
- persistentVolumeClaim(claimName: 'ubuntu-video-lib',mountPath: '/root/video_lib',readOnly: false),
57
51
persistentVolumeClaim(claimName: 'ubuntu-log',mountPath: '/root/ubuntu_log',readOnly: false)
58
52
],
59
53
containers: [
60
- containerTemplate(name: 'api-test-server-ubuntu', image: "$env.ubuntu_test_images", ttyEnabled: true, alwaysPullImage: true, privileged: true, resourceRequestCpu: '2000m', resourceLimitCpu: '6000m',resourceLimitMemory: '9.0Gi', resourceRequestMemory: '8.0Gi', network: 'host', command: 'cat'),
61
- ]) {
62
- node('api-test-server-ubuntu') {
63
- container('api-test-server-ubuntu') {
64
- sh "/root/startRun.sh $env.gitlab_username $env.gitlab_password ubuntu test ${env.GIT_COMMIT} ConferenceClient_API_1"
54
+ containerTemplate(name: 'test-images', image: "$env.ubuntu_test_images", ttyEnabled: true, alwaysPullImage: true, privileged: true, resourceRequestCpu: '3000m', resourceLimitCpu: '4000m', resourceRequestMemory: '2.0Gi', resourceLimitMemory: '3.0Gi', command: 'cat'), ]) {
55
+ node('api-server-ubuntu-'+env.GIT_BRANCH) {
56
+ container('test-images') {
57
+ sh "/root/startRun.sh * * ubuntu test ${env.GIT_COMMIT} ConferenceClient_API_1"
65
58
}
66
59
}
67
60
}
@@ -70,51 +63,24 @@ pipeline {
70
63
71
64
stage('ConferenceClient API 2') {
72
65
steps {
73
- podTemplate(name:'subscribe-test- server-ubuntu' , label: 'subscribe-test- server-ubuntu' , cloud: 'kubernetes',
66
+ podTemplate(name:'rest- server-ubuntu-'+env.GIT_BRANCH , label: 'rest- server-ubuntu-'+env.GIT_BRANCH , cloud: 'kubernetes',
74
67
volumes: [
75
68
persistentVolumeClaim(claimName: 'ubuntu-package',mountPath: '/root/ubuntu_package',readOnly: false),
76
- persistentVolumeClaim(claimName: 'ubuntu-audio-lib',mountPath: '/root/audio_lib',readOnly: false),
77
- persistentVolumeClaim(claimName: 'ubuntu-recording-lib',mountPath: '/root/recording_lib',readOnly: false),
78
- persistentVolumeClaim(claimName: 'ubuntu-sip-lib',mountPath: '/root/sip_lib',readOnly: false),
79
- persistentVolumeClaim(claimName: 'ubuntu-streaming-lib',mountPath: '/root/streaming_lib',readOnly: false),
80
- persistentVolumeClaim(claimName: 'ubuntu-video-lib',mountPath: '/root/video_lib',readOnly: false),
81
69
persistentVolumeClaim(claimName: 'ubuntu-log',mountPath: '/root/ubuntu_log',readOnly: false)
82
70
],
83
71
containers: [
84
- containerTemplate(name: 'subscribe- test-server-ubuntu ', image: "$env.ubuntu_test_images", ttyEnabled: true, alwaysPullImage: true, privileged: true, resourceRequestCpu: '2000m ', resourceLimitCpu: '6000m',resourceLimitMemory: '9.0Gi', resourceRequestMemory: '8 .0Gi', network : 'host ', command: 'cat'),
72
+ containerTemplate(name: 'test-images ', image: "$env.ubuntu_test_images", ttyEnabled: true, alwaysPullImage: true, privileged: true,resourceRequestCpu: '3000m ', resourceLimitCpu: '4000m', resourceRequestMemory: '2 .0Gi', resourceLimitMemory : '3.0Gi ', command: 'cat'),
85
73
]) {
86
- node('subscribe-test- server-ubuntu' ) {
87
- container('subscribe- test-server-ubuntu ') {
88
- sh "/root/startRun.sh $env.gitlab_username $env.gitlab_password ubuntu test ${env.GIT_COMMIT} ConferenceClient_API_2"
74
+ node('rest- server-ubuntu-'+env.GIT_BRANCH ) {
75
+ container('test-images ') {
76
+ sh "/root/startRun.sh * * ubuntu test ${env.GIT_COMMIT} ConferenceClient_API_2"
89
77
}
90
78
}
91
79
}
92
80
}
93
81
}
94
82
95
- stage('ConferenceClient API 3') {
96
- steps {
97
- podTemplate(name:'simucast-test-server-ubuntu', label: 'simucast-test-server-ubuntu', cloud: 'kubernetes',
98
- volumes: [
99
- persistentVolumeClaim(claimName: 'ubuntu-package',mountPath: '/root/ubuntu_package',readOnly: false),
100
- persistentVolumeClaim(claimName: 'ubuntu-audio-lib',mountPath: '/root/audio_lib',readOnly: false),
101
- persistentVolumeClaim(claimName: 'ubuntu-recording-lib',mountPath: '/root/recording_lib',readOnly: false),
102
- persistentVolumeClaim(claimName: 'ubuntu-sip-lib',mountPath: '/root/sip_lib',readOnly: false),
103
- persistentVolumeClaim(claimName: 'ubuntu-streaming-lib',mountPath: '/root/streaming_lib',readOnly: false),
104
- persistentVolumeClaim(claimName: 'ubuntu-video-lib',mountPath: '/root/video_lib',readOnly: false),
105
- persistentVolumeClaim(claimName: 'ubuntu-log',mountPath: '/root/ubuntu_log',readOnly: false)
106
- ],
107
- containers: [
108
- containerTemplate(name: 'simucast-test-server-ubuntu', image: "$env.ubuntu_test_images", ttyEnabled: true, alwaysPullImage: true, privileged: true, resourceRequestCpu: '2000m', resourceLimitCpu: '6000m',resourceLimitMemory: '9.0Gi', resourceRequestMemory: '8.0Gi', network: 'host', command: 'cat'),
109
- ]) {
110
- node('simucast-test-server-ubuntu') {
111
- container('simucast-test-server-ubuntu') {
112
- sh "/root/startRun.sh $env.gitlab_username $env.gitlab_password ubuntu test ${env.GIT_COMMIT} ConferenceClient_API_3"
113
- }
114
- }
115
- }
116
- }
117
- }
83
+
118
84
119
85
}
120
86
}
@@ -140,3 +106,4 @@ pipeline {
140
106
}
141
107
}
142
108
109
+
0 commit comments