Add jenkins-presubmit.groovy
Change-Id: I0fa4d3b89dd86577e2da4c86534d9d86ed1cb8bc
This commit is contained in:
parent
dda839b3cb
commit
46ae5f5d44
|
@ -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']
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
Loading…
Reference in New Issue