Define Inria CI's Risc-V job as a Jenkins pipeline, take #1

master
Sébastien Hinderer 2020-08-13 14:44:06 +02:00
parent 2f16b98a8d
commit 5cdc8072be
1 changed files with 42 additions and 0 deletions

42
tools/ci/inria/Risc-V/Jenkinsfile vendored Normal file
View File

@ -0,0 +1,42 @@
/**************************************************************************/
/* */
/* OCaml */
/* */
/* Sebastien Hinderer, INRIA Paris */
/* */
/* Copyright 2020 Institut National de Recherche en Informatique et */
/* en Automatique. */
/* */
/* All rights reserved. This file is distributed under the terms of */
/* the GNU Lesser General Public License version 2.1, with the */
/* special exception on linking described in the file LICENSE. */
/* */
/**************************************************************************/
/* Pipeline for the Risc-V job on Inria's CI */
pipeline {
agent { label 'olive' }
stages {
stage('Verifying that OCaml commpiles on a Risc-V virtual machine') {
steps {
sh 'ssh -p 10000 riscv@localhost GIT_COMMIT=${GIT_COMMIT} ' +
'flambda=false /home/riscv/run-ci'
}
}
}
post {
always {
emailext (
to: 'ocaml-ci-notifications@inria.fr',
subject: 'Job $JOB_NAME $BUILD_STATUS (build #$BUILD_NUMBER)',
body: 'Changes since the last successful build:\n\n' +
'${CHANGES, format="%r %a %m"}\n\n' +
'See the attached build log or check console output here:\n' +
'$BUILD_URL\n',
/* recipientProviders: [[$class: 'DevelopersRecipientProvider']], */
attachLog: true
)
}
}
}