From 0867efdd0eb9cd4758ca8e8cd6d7e1ded9956826 Mon Sep 17 00:00:00 2001 From: Sale Djenic Date: Thu, 5 Sep 2024 09:24:54 +0200 Subject: [PATCH] chore_: anvil tests to added to ci --- _assets/ci/Jenkinsfile.tests-anvil | 60 ++++++++++++++++++++++++++++++ 1 file changed, 60 insertions(+) create mode 100644 _assets/ci/Jenkinsfile.tests-anvil diff --git a/_assets/ci/Jenkinsfile.tests-anvil b/_assets/ci/Jenkinsfile.tests-anvil new file mode 100644 index 00000000000..9438a4db4dd --- /dev/null +++ b/_assets/ci/Jenkinsfile.tests-anvil @@ -0,0 +1,60 @@ +#!/usr/bin/env groovy +library 'status-jenkins-lib@v1.9.6' + +pipeline { + agent { label 'linux && x86_64 && nix-2.19' } + + parameters { + string( + name: 'BRANCH', + defaultValue: 'develop', + description: 'Name of branch to build.' + ) + } + + options { + timestamps() + /* Prevent Jenkins jobs from running forever */ + timeout(time: 30, unit: 'MINUTES') + disableConcurrentBuilds() + /* manage how many builds we keep */ + buildDiscarder(logRotator( + numToKeepStr: '5', + daysToKeepStr: '30', + artifactNumToKeepStr: '1', + )) + } + + environment { + PLATFORM = 'tests-anvil' + PKG_URL = "${currentBuild.absoluteUrl}/consoleText" + } + + stages { + stage('Anvil Tests') { + steps { script { + sh 'make run-integration-anvil' + } } + } + } // stages + + post { + always { + script { + archiveArtifacts( + artifacts: '**/results.xml', + allowEmptyArchive: true, + ) + junit( + testResults: '**/results.xml', + skipOldReports: true, + skipPublishingChecks: true, + skipMarkingBuildUnstable: true, + ) + } + } + success { script { github.notifyPR(true) } } + failure { script { github.notifyPR(false) } } + cleanup { sh 'make git-clean' } + } // post +} // pipeline