提交 1a6a295e 编写于 作者: L liuyq-617

test Jenkins

上级 676f8c18
...@@ -6,135 +6,135 @@ node { ...@@ -6,135 +6,135 @@ node {
// execute this before anything else, including requesting any time on an agent // execute this before anything else, including requesting any time on an agent
// if (currentBuild.rawBuild.getCauses().toString().contains('BranchIndexingCause')) { if (currentBuild.rawBuild.getCauses().toString().contains('BranchIndexingCause')) {
// print "INFO: Build skipped due to trigger being Branch Indexing" print "INFO: Build skipped due to trigger being Branch Indexing"
// currentBuild.result = 'ABORTED' // optional, gives a better hint to the user that it's been skipped, rather than the default which shows it's successful currentBuild.result = 'ABORTED' // optional, gives a better hint to the user that it's been skipped, rather than the default which shows it's successful
// return return
// } }
// def pre_test(){ def pre_test(){
// catchError(buildResult: 'SUCCESS', stageResult: 'FAILURE') { catchError(buildResult: 'SUCCESS', stageResult: 'FAILURE') {
// sh ''' sh '''
// sudo rmtaos sudo rmtaos
// ''' '''
// } }
// sh ''' sh '''
// cd ${WKC} cd ${WKC}
// rm -rf * rm -rf *
// cd ${WK} cd ${WK}
// git reset --hard git reset --hard
// git checkout develop git checkout develop
// git pull git pull
// cd ${WKC} cd ${WKC}
// rm -rf * rm -rf *
// mv ${WORKSPACE}/* . mv ${WORKSPACE}/* .
// cd ${WK} cd ${WK}
// export TZ=Asia/Harbin export TZ=Asia/Harbin
// date date
// rm -rf ${WK}/debug rm -rf ${WK}/debug
// mkdir debug mkdir debug
// cd debug cd debug
// cmake .. > /dev/null cmake .. > /dev/null
// make > /dev/null make > /dev/null
// make install > /dev/null make install > /dev/null
// cd ${WKC}/tests cd ${WKC}/tests
// ''' '''
// return 1 return 1
// } }
// pipeline { pipeline {
// agent none agent none
// environment{ environment{
// WK = '/var/lib/jenkins/workspace/TDinternal' WK = '/var/lib/jenkins/workspace/TDinternal'
// WKC= '/var/lib/jenkins/workspace/TDinternal/community' WKC= '/var/lib/jenkins/workspace/TDinternal/community'
// } }
// stages { stages {
// stage('Parallel test stage') { stage('Parallel test stage') {
// parallel { parallel {
// stage('python p1') { stage('python p1') {
// agent{label 'p1'} agent{label 'p1'}
// steps { steps {
// pre_test() pre_test()
// sh ''' sh '''
// cd ${WKC}/tests cd ${WKC}/tests
// ./test-all.sh p1 ./test-all.sh p1
// date''' date'''
// } }
// } }
// stage('test_b1') { stage('test_b1') {
// agent{label 'master'} agent{label 'master'}
// steps { steps {
// pre_test() pre_test()
// sh ''' sh '''
// cd ${WKC}/tests cd ${WKC}/tests
// ./test-all.sh b1 ./test-all.sh b1
// date''' date'''
// } }
// } }
// stage('test_crash_gen') { stage('test_crash_gen') {
// agent{label "b2"} agent{label "b2"}
// steps { steps {
// pre_test() pre_test()
// catchError(buildResult: 'SUCCESS', stageResult: 'FAILURE') { catchError(buildResult: 'SUCCESS', stageResult: 'FAILURE') {
// sh ''' sh '''
// cd ${WKC}/tests/pytest cd ${WKC}/tests/pytest
// ./crash_gen.sh -a -p -t 4 -s 2000 ./crash_gen.sh -a -p -t 4 -s 2000
// ''' '''
// } }
// catchError(buildResult: 'SUCCESS', stageResult: 'FAILURE') { catchError(buildResult: 'SUCCESS', stageResult: 'FAILURE') {
// sh ''' sh '''
// cd ${WKC}/tests/pytest cd ${WKC}/tests/pytest
// ./handle_crash_gen_val_log.sh ./handle_crash_gen_val_log.sh
// ''' '''
// } }
// sh ''' sh '''
// date date
// cd ${WKC}/tests cd ${WKC}/tests
// ./test-all.sh b2 ./test-all.sh b2
// date date
// ''' '''
// } }
// } }
// stage('test_valgrind') { stage('test_valgrind') {
// agent{label "b3"} agent{label "b3"}
// steps { steps {
// pre_test() pre_test()
// catchError(buildResult: 'SUCCESS', stageResult: 'FAILURE') { catchError(buildResult: 'SUCCESS', stageResult: 'FAILURE') {
// sh ''' sh '''
// cd ${WKC}/tests/pytest cd ${WKC}/tests/pytest
// ./valgrind-test.sh 2>&1 > mem-error-out.log ./valgrind-test.sh 2>&1 > mem-error-out.log
// ./handle_val_log.sh ./handle_val_log.sh
// ''' '''
// } }
// sh ''' sh '''
// date date
// cd ${WKC}/tests cd ${WKC}/tests
// ./test-all.sh b3 ./test-all.sh b3
// date''' date'''
// } }
// } }
// stage('python p2'){ stage('python p2'){
// agent{label "p2"} agent{label "p2"}
// steps{ steps{
// pre_test() pre_test()
// sh ''' sh '''
// date date
// cd ${WKC}/tests cd ${WKC}/tests
// ./test-all.sh p2 ./test-all.sh p2
// date date
// ''' '''
// } }
// } }
// } }
// } }
// } }
// } }
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册