mirror of
https://github.com/zeromq/libzmq.git
synced 2024-12-14 02:57:47 +01:00
Jenkinsfile : regenerated with zproject support for cppcheck among other tests
This commit is contained in:
parent
70d3cc23be
commit
59347f68b8
28
Jenkinsfile
vendored
28
Jenkinsfile
vendored
@ -77,17 +77,6 @@ pipeline {
|
|||||||
// Note: your Jenkins setup may benefit from similar setup on side of agents:
|
// Note: your Jenkins setup may benefit from similar setup on side of agents:
|
||||||
// PATH="/usr/lib64/ccache:/usr/lib/ccache:/usr/bin:/bin:${PATH}"
|
// PATH="/usr/lib64/ccache:/usr/lib/ccache:/usr/bin:/bin:${PATH}"
|
||||||
stages {
|
stages {
|
||||||
stage ('cppcheck') {
|
|
||||||
when { expression { return ( params.DO_CPPCHECK ) } }
|
|
||||||
steps {
|
|
||||||
dir("tmp") {
|
|
||||||
deleteDir()
|
|
||||||
}
|
|
||||||
sh 'cppcheck --std=c++11 --enable=all --inconclusive --xml --xml-version=2 . 2>cppcheck.xml'
|
|
||||||
archiveArtifacts artifacts: '**/cppcheck.xml'
|
|
||||||
sh 'rm -f cppcheck.xml'
|
|
||||||
}
|
|
||||||
}
|
|
||||||
stage ('prepare') {
|
stage ('prepare') {
|
||||||
steps {
|
steps {
|
||||||
dir("tmp") {
|
dir("tmp") {
|
||||||
@ -164,6 +153,23 @@ pipeline {
|
|||||||
}
|
}
|
||||||
stage ('check') {
|
stage ('check') {
|
||||||
parallel {
|
parallel {
|
||||||
|
stage ('cppcheck') {
|
||||||
|
when { expression { return ( params.DO_CPPCHECK ) } }
|
||||||
|
steps {
|
||||||
|
dir("tmp/test-cppcheck") {
|
||||||
|
deleteDir()
|
||||||
|
unstash 'prepped'
|
||||||
|
sh 'cppcheck --std=c++11 --enable=all --inconclusive --xml --xml-version=2 . 2>cppcheck.xml'
|
||||||
|
archiveArtifacts artifacts: '**/cppcheck.xml'
|
||||||
|
sh 'rm -f cppcheck.xml'
|
||||||
|
script {
|
||||||
|
if ( params.DO_CLEANUP_AFTER_BUILD ) {
|
||||||
|
deleteDir()
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
stage ('check with DRAFT') {
|
stage ('check with DRAFT') {
|
||||||
when { expression { return ( params.DO_BUILD_WITH_DRAFT_API && params.DO_TEST_CHECK ) } }
|
when { expression { return ( params.DO_BUILD_WITH_DRAFT_API && params.DO_TEST_CHECK ) } }
|
||||||
steps {
|
steps {
|
||||||
|
Loading…
Reference in New Issue
Block a user