...
 
Commits (21)
......@@ -12,11 +12,11 @@ class DefaultContainerBuildNodeImages {
'shell': '/usr/bin/scl enable devtoolset-8 -- /bin/bash -e -x'
],
'debian9': [
'image': 'screamingudder/debian9-build-node:3.5.0',
'image': 'screamingudder/debian9-build-node:3.5.1',
'shell': 'bash -e -x'
],
'debian10': [
'image': 'screamingudder/debian10-build-node:1.0.2',
'image': 'screamingudder/debian10-build-node:1.0.4',
'shell': 'bash -e -x'
],
'ubuntu1804': [
......@@ -24,11 +24,11 @@ class DefaultContainerBuildNodeImages {
'shell': 'bash -e -x'
],
'ubuntu1804-gcc8': [
'image': 'screamingudder/ubuntu18.04-build-node:3.0.1',
'image': 'screamingudder/ubuntu18.04-build-node:3.1.0',
'shell': 'bash -e -x'
],
'alpine': [
'image': 'screamingudder/alpine-build-node:1.8.1',
'image': 'screamingudder/alpine-build-node:2.0.1',
'shell': 'bash -e -x'
]
]
......
......@@ -120,6 +120,22 @@ class PipelineBuilder implements Serializable {
return builders
}
/**
*
*/
def abortBuildOnMagicCommitMessage() {
result = script.sh(
script: "git log -1 | grep '\\[ci skip\\]'",
returnStatus: true
)
if (result == 0) {
script.echo "Ignoring this build because of commit message"
script.currentBuild.result = 'ABORTED'
script.error('Build skipped')
}
}
/**
* Get a Jenkins pipeline stage with automated failure messages.
*
......