Initial commit
This commit is contained in:
parent
e3cf96c2d4
commit
78f94d1a7e
31
Jenkinsfile
vendored
Normal file
31
Jenkinsfile
vendored
Normal file
|
@ -0,0 +1,31 @@
|
||||||
|
#!/usr/bin/groovy
|
||||||
|
|
||||||
|
@Library('github.com/fabric8io/fabric8-pipeline-library@master')
|
||||||
|
def canaryVersion = "1.0.${env.BUILD_NUMBER}"
|
||||||
|
def utils = new io.fabric8.Utils()
|
||||||
|
|
||||||
|
mavenNode {
|
||||||
|
checkout scm
|
||||||
|
if (utils.isCI()) {
|
||||||
|
|
||||||
|
mavenCI {
|
||||||
|
integrationTestCmd =
|
||||||
|
"mvn org.apache.maven.plugins:maven-failsafe-plugin:integration-test \
|
||||||
|
org.apache.maven.plugins:maven-failsafe-plugin:verify \
|
||||||
|
-Dnamespace.use.current=false -Dnamespace.use.existing=${utils.testNamespace()} \
|
||||||
|
-Dit.test=*IT -DfailIfNoTests=false -DenableImageStreamDetection=true \
|
||||||
|
-P openshift-it"
|
||||||
|
}
|
||||||
|
|
||||||
|
} else if (utils.isCD()) {
|
||||||
|
echo 'NOTE: running pipelines for the first time will take longer as build and base docker images are pulled onto the node'
|
||||||
|
container(name: 'maven', shell:'/bin/bash') {
|
||||||
|
stage('Build Image') {
|
||||||
|
mavenCanaryRelease {
|
||||||
|
version = canaryVersion
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
Loading…
Reference in New Issue
Block a user