mirror of
https://github.com/SAP/jenkins-library.git
synced 2024-12-14 11:03:09 +02:00
Merge branch 'master' into marcusholl/integrationtests/removeRedundanciesInIntegrationTests
This commit is contained in:
commit
ea81e97127
19
Jenkinsfile
vendored
19
Jenkinsfile
vendored
@ -1,19 +0,0 @@
|
||||
node {
|
||||
try {
|
||||
lock(resource: "sap-jenkins-library/10", inversePrecedence: true) {
|
||||
milestone 10
|
||||
deleteDir()
|
||||
stage ('Checkout'){
|
||||
checkout scm
|
||||
}
|
||||
stage ('Test') {
|
||||
sh "mvn clean test --batch-mode"
|
||||
}
|
||||
}
|
||||
} catch (Throwable err) {
|
||||
echo "Error occured: ${err}"
|
||||
currentBuild.result = 'FAILURE'
|
||||
mail subject: '[Build failed] SAP/jenkins-library', body: 'Fix the build.', to: 'marcus.holl@sap.com,oliver.nocon@sap.com'
|
||||
throw err
|
||||
}
|
||||
}
|
@ -108,7 +108,7 @@ Register to our [google group][google-group] in order to get updates or for aski
|
||||
Read and understand our [contribution guidelines][piper-library-contribution]
|
||||
before opening a pull request.
|
||||
|
||||
# [License][piper-library-license]
|
||||
# License
|
||||
|
||||
Copyright (c) 2017 SAP SE or an SAP affiliate company. All rights reserved.
|
||||
This file is licensed under the Apache Software License, v. 2 except as noted
|
||||
|
@ -35,7 +35,10 @@ void call(Map parameters = [:]) {
|
||||
.mixinStepConfig(script.commonPipelineEnvironment, STEP_CONFIG_KEYS)
|
||||
.mixinStageConfig(script.commonPipelineEnvironment, parameters.stageName?:env.STAGE_NAME, STEP_CONFIG_KEYS)
|
||||
.mixin([
|
||||
artifactVersion: script.commonPipelineEnvironment.getArtifactVersion()
|
||||
artifactVersion: script.commonPipelineEnvironment.getArtifactVersion(),
|
||||
influxPrefix: script.commonPipelineEnvironment.getGithubOrg() && script.commonPipelineEnvironment.getGithubRepo()
|
||||
? "${script.commonPipelineEnvironment.getGithubOrg()}_${script.commonPipelineEnvironment.getGithubRepo()}"
|
||||
: null
|
||||
])
|
||||
.mixin(parameters, PARAMETER_KEYS)
|
||||
.addIfNull('customData', script.commonPipelineEnvironment.getInfluxCustomData())
|
||||
|
@ -6,7 +6,7 @@ import groovy.transform.Field
|
||||
@Field STEP_NAME = getClass().getName()
|
||||
|
||||
void call(Map parameters = [:]) {
|
||||
handlePipelineStepErrors (stepName: 'prepareDefaultValues', stepParameters: parameters) {
|
||||
handlePipelineStepErrors (stepName: 'prepareDefaultValues', stepParameters: parameters, echoDetails: false) {
|
||||
if(!DefaultValueCache.getInstance() || parameters.customDefaults) {
|
||||
def defaultValues = [:]
|
||||
def configFileList = ['default_pipeline_environment.yml']
|
||||
|
Loading…
Reference in New Issue
Block a user