blob: 10aac934f344ffd121c21316806ca1bf7681fbd4 [file] [log] [blame]
#!/usr/bin/env groovy
pipeline_worknode = "10.235.74.94"
pipeline {
agent {
node {
label pipeline_worknode
}
}
options {
timestamps()
timeout(time: 3, unit: 'HOURS')
}
stages {
stage("prepare") {
steps {
sh 'echo prepare'
sh "printenv"
}
}
stage("build") {
parallel {
stage('verifyCI_v3t_ap_linux_kw') {
steps{
script {
try{
build job: "verifyCI_v3t_ap_linux_kw", parameters: [string(name: 'GERRIT_REFSPEC', value: env.GERRIT_REFSPEC), string(name: 'GERRIT_PATCHSET_REVISION', value: env.GERRIT_PATCHSET_REVISION), string(name: 'GERRIT_CHANGE_NUMBER', value: env.GERRIT_CHANGE_NUMBER), string(name: 'GERRIT_CHANGE_OWNER_EMAIL', value: env.GERRIT_CHANGE_OWNER_EMAIL), string(name: 'GERRIT_BRANCH', value: env.GERRIT_BRANCH)]
env.ap_linux_kw_ret="true"
}catch (exc) {
env.ap_linux_kw_ret="false"
echo "verifyCI_v3t_ap_linux_kw error ${env.ap_linux_kw_ret}"
}
}
}
}
stage('verifyCI_v3t_ap_linux_cov') {
steps {
script {
try {
build job: "verifyCI_v3t_ap_linux_cov", parameters: [string(name: 'GERRIT_REFSPEC', value: env.GERRIT_REFSPEC), string(name: 'GERRIT_PATCHSET_REVISION', value: env.GERRIT_PATCHSET_REVISION), string(name: 'GERRIT_CHANGE_NUMBER', value: env.GERRIT_CHANGE_NUMBER), string(name: 'GERRIT_CHANGE_OWNER_EMAIL', value: env.GERRIT_CHANGE_OWNER_EMAIL), string(name: 'GERRIT_BRANCH', value: env.GERRIT_BRANCH)]
env.ap_linux_cov_ret="true"
}catch (exc) {
env.ap_linux_cov_ret="false"
echo "verifyCI_v3t_ap_linux_cov error ${env.ap_linux_cov_ret}"
}
}
}
}
}
}
stage("check") {
steps {
sh 'echo check'
script {
echo "ap_linux_cov_ret=${env.ap_linux_cov_ret}"
echo "ap_linux_kw_ret=${env.ap_linux_kw_ret}"
if (env.ap_linux_cov_ret == "false") {
error("ap coverity check fail")
}
if (env.ap_linux_kw_ret == "false") {
error("ap linux klocwork check fail")
}
}
}
}
}
}