blob: f8918c10b4a846baaa7258e1ef1bd7aed828d388 [file] [log] [blame]
lh9ed821d2023-04-07 01:36:19 -07001#!/usr/bin/env groovy
2
3pipeline_worknode = "10.235.74.94"
4
5pipeline {
6 agent {
7 node {
8 label pipeline_worknode
9 }
10 }
11 options {
12 timestamps()
13 timeout(time: 3, unit: 'HOURS')
14 }
15 stages {
16 stage("prepare") {
17 steps {
18 sh 'echo prepare'
19 }
20 }
21 stage("build") {
22 parallel {
23 stage('MergeCI_v3t_ap_linux') {
24 steps{
25 script {
26 try{
27 build job: "MergeCI_v3t_ap_linux", parameters: [string(name: 'TEST_STRING', value: env.TEST_STRING)]
28 env.ap_linux_ret="true"
29 }catch (exc) {
30 env.ap_linux_ret="false"
31 echo "MergeCI_v3t_ap_linux error ${env.ap_linux_ret}"
32 }
33 }
34 }
35 }
36 stage('MergeCI_v3t_ap_win') {
37 steps {
38 script {
39 try {
40 build job: "MergeCI_v3t_ap_win", parameters: [string(name: 'TEST_STRING', value: env.TEST_STRING)]
41 env.ap_win_ret="true"
42 }catch (exc) {
43 env.ap_win_ret="false"
44 echo "MergeCI_v3t_ap_win error ${env.ap_win_ret}"
45 }
46 }
47 }
48 }
49 }
50 }
51 stage("check") {
52 steps {
53 sh 'echo check'
54 script {
55 if (env.ap_win_ret == "true") {
56 echo "ap_win_ret check pass"
57 } else {
58 echo "ap_win_ret check fail"
59 }
60 if (env.ap_linux_ret == "true") {
61 echo "ap_linux_ret check pass"
62 } else {
63 echo "ap_linux_ret check fail"
64 }
65
66 }
67 }
68 }
69 }
70}