#!/usr/bin/env groovy
@Library('github.com/stakater/fabric8-pipeline-library@master')
def localItestPattern = ""
try {
localItestPattern = ITEST_PATTERN
} catch (Throwable e) {
localItestPattern = "*KT"
}
def localFailIfNoTests = ""
try {
localFailIfNoTests = ITEST_FAIL_IF_NO_TEST
} catch (Throwable e) {
localFailIfNoTests = "false"
}
def versionPrefix = ""
try {
versionPrefix = VERSION_PREFIX
} catch (Throwable e) {
versionPrefix = "1.0"
}
def canaryVersion = "${versionPrefix}.${env.BUILD_NUMBER}"
def fabric8Console = "${env.FABRIC8_CONSOLE ?: ''}"
def utils = new io.fabric8.Utils()
def label = "buildpod.${env.JOB_NAME}.${env.BUILD_NUMBER}".replace('-', '_').replace('/', '_')
def envStage = utils.environmentNamespace('stage')
def envProd = utils.environmentNamespace('run')
def stashName = ""
def deploy = false
mavenNode(mavenImage: 'stakater/chrome-headless') {
container(name: 'maven') {
stage("checkout") {
checkout scm
}
stage("ls") {
containerLog 'maven'
sh 'ls -l'
}
stage("chmod") {
sh 'chmod +x mvnw'
}
stage("test") {
sh './mvnw clean verify -Dbrowser=chrome -Dheadless=true'
}
}
containerLog 'maven'
}
Created
September 29, 2017 09:12
-
-
Save rasheedamir/7366c52c9a641443586f81b8d91c0713 to your computer and use it in GitHub Desktop.
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment