github.com/status-im/status-go@v1.1.0/_assets/ci/Jenkinsfile.tests-rpc (about) 1 #!/usr/bin/env groovy 2 library 'status-jenkins-lib@v1.9.6' 3 4 pipeline { 5 agent { label 'linux && x86_64 && nix-2.19' } 6 7 parameters { 8 string( 9 name: 'BRANCH', 10 defaultValue: 'develop', 11 description: 'Name of branch to build.' 12 ) 13 } 14 15 options { 16 timestamps() 17 /* Prevent Jenkins jobs from running forever */ 18 timeout(time: 30, unit: 'MINUTES') 19 disableConcurrentBuilds() 20 /* manage how many builds we keep */ 21 buildDiscarder(logRotator( 22 numToKeepStr: '5', 23 daysToKeepStr: '30', 24 artifactNumToKeepStr: '1', 25 )) 26 } 27 28 environment { 29 PLATFORM = 'tests-rpc' 30 PKG_URL = "${currentBuild.absoluteUrl}/consoleText" 31 } 32 33 stages { 34 stage('RPC Tests') { 35 steps { script { 36 sh 'make run-integration-tests' 37 } } 38 } 39 } // stages 40 41 post { 42 always { 43 script { 44 archiveArtifacts( 45 artifacts: '**/results.xml', 46 allowEmptyArchive: true, 47 ) 48 junit( 49 testResults: '**/results.xml', 50 skipOldReports: true, 51 skipPublishingChecks: true, 52 skipMarkingBuildUnstable: true, 53 ) 54 } 55 } 56 success { script { github.notifyPR(true) } } 57 failure { script { github.notifyPR(false) } } 58 cleanup { sh 'make git-clean' } 59 } // post 60 } // pipeline