jimklimov

Jenkinsfile WIP for NUT-DMF

Nov 20th, 2016
220
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Groovy 1.57 KB | None | 0 0
  1.  #!groovy
  2.  pipeline {
  3.        agent label:''
  4.        stages {
  5.                stage ("PREP") {
  6.                        steps {
  7.                                echo "Checkout to ${env.NODE_NAME} : ${WORKSPACE}"
  8.                                checkout scm
  9.                                
  10.                                echo 'Clean'
  11.                                sh 'if [ -s Makefile ] ; then make -k clean >/dev/null 2>&1 ; make -k distclean >/dev/null 2>&1 ; fi'
  12.                                sh 'rm -f config.cache config.log config.status'
  13.                                sh 'git checkout -- scripts/DMF/dmfnutscan/*.dmf scripts/DMF/dmfsnmp/*.dmf || true'
  14.  
  15.                                echo 'Autogen'
  16.                                sh './autogen.sh'
  17.                        }
  18.                }
  19.                stage ('Configure') {
  20.                        steps {
  21.                                sh 'PATH=/usr/lib/ccache:$PATH CC=/usr/lib/ccache/gcc CXX=/usr/lib/ccache/g++ ./configure --with-snmp --with-neon --with-dev --with-doc=man -C --with-snmp_dmf=yes --with-dmfnutscan-regenerate=yes --with-dmfsnmp-regenerate=yes'
  22.                        }
  23.                }
  24.                stage ('Build') {
  25.                        steps {
  26.                                sh 'gmake -j 4 -k all || { echo ""; echo "================"; echo "=== REMAKE"; gmake -j1 all; }'
  27.                        }
  28.                }
  29.                stage ('TestMore') {
  30.                        steps {
  31.                                sh 'gmake distcheck-dmf'
  32.                        }
  33.                }
  34.        }
Advertisement
Add Comment
Please, Sign In to add comment