Skip to content

Commit

Permalink
chore_: anvil tests to added to ci
Browse files Browse the repository at this point in the history
  • Loading branch information
saledjenic committed Sep 5, 2024
1 parent b713a00 commit 0867efd
Showing 1 changed file with 60 additions and 0 deletions.
60 changes: 60 additions & 0 deletions _assets/ci/Jenkinsfile.tests-anvil
Original file line number Diff line number Diff line change
@@ -0,0 +1,60 @@
#!/usr/bin/env groovy
library '[email protected]'

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

0 comments on commit 0867efd

Please sign in to comment.