pipeline { agent { label 'gcloud-public' } environment { HGTEST_PORT = Integer.toString(Math.abs((new Random().nextInt() % 8000) * 5) + 20000) } stages { stage('Checkout Mercurial') { steps { checkout([$class: 'MercurialSCM', credentialsId: '', source: 'https://mirror.octobus.net/hg/', clean: true, disableChangeLog: false, subdir: 'mercurial']) } } stage('Checkout Evolve') { steps { checkout([$class: 'MercurialSCM', credentialsId: '', source: 'https://mirror.octobus.net/evolve/', clean: true, disableChangeLog: false, subdir: 'evolve']) } } stage("Compiled tests") { steps { dir("evolve/tests") { catchError { sh "echo $HGTEST_PORT" sh "python3 ../../mercurial/tests/run-tests.py -t 1200" } } } } } post { failure { step([$class: 'Mailer', notifyEveryUnstableBuild: true, recipients: 'boris.feld@octobus.net pierre-yves.david@octobus.net', sendToIndividuals: false]) sh "./irc_notification.sh 'Evolve build is broken, see ${BUILD_URL}'" } } }