Add jenkins-presubmit.groovy

Change-Id: I0fa4d3b89dd86577e2da4c86534d9d86ed1cb8bc
This commit is contained in:
Leo 2021-08-17 22:34:14 +02:00
parent dda839b3cb
commit 46ae5f5d44
1 changed files with 29 additions and 0 deletions

29
jenkins-presubmit.groovy Normal file
View File

@ -0,0 +1,29 @@
pipeline {
agent none
stages {
stage('Parallel') {
parallel {
stage('Test') {
agent {
node {
label ""
customWorkspace '/home/ci/wormhole'
}
}
steps {
gerritCheck checks: ['jenkins:test': 'RUNNING'], message: "Running on ${env.NODE_NAME}"
sh "git show HEAD"
}
post {
success {
gerritCheck checks: ['jenkins:test': 'SUCCESSFUL']
}
unsuccessful {
gerritCheck checks: ['jenkins:test': 'FAILED']
}
}
}
}
}
}
}