Revert "Make sh silent"

This reverts commit a3d0974b46.
This commit is contained in:
Gabriele C 2018-03-13 13:03:48 +01:00
parent a3d0974b46
commit 0d9228214a

30
Jenkinsfile vendored
View File

@ -1,7 +1,3 @@
def silentsh(cmd) {
sh('#!/bin/sh -e\n' + cmd)
}
pipeline {
agent any
tools {
@ -13,7 +9,7 @@ pipeline {
steps {
script {
env.CI_SKIP = "false"
result = silentsh(script: "git log -1 | grep '(?s).[CI[-\\s]SKIP].*'", returnStatus: true)
result = sh (script: "git log -1 | grep '(?s).[CI[-\\s]SKIP].*'", returnStatus: true)
if (result == 0) {
env.CI_SKIP = "true"
error "'[CI-SKIP]' found in git commit message. Aborting."
@ -24,37 +20,37 @@ pipeline {
stage ('clean') {
steps {
echo 'Cleaning the maven workspace...'
silentsh 'mvn clean'
sh 'mvn clean'
}
}
stage ('dependencies') {
steps {
echo 'Downloading dependencies...'
silentsh 'mvn dependency:go-offline'
sh 'mvn dependency:go-offline'
}
}
stage ('validate') {
steps {
echo 'Validating the maven project...'
silentsh 'mvn -o validate'
sh 'mvn -o validate'
}
}
stage ('compile') {
steps {
echo 'Compiling source classes...'
silentsh 'mvn -o compile'
sh 'mvn -o compile'
}
}
stage ('compile-test') {
steps {
echo 'Compiling test classes...'
silentsh 'mvn -o test-compile'
sh 'mvn -o test-compile'
}
}
stage ('test') {
steps {
echo 'Performing unit testing...'
silentsh 'mvn -o test'
sh 'mvn -o test'
}
post {
success {
@ -66,7 +62,7 @@ pipeline {
stage ('package') {
steps {
echo 'Preparing the final package...'
silentsh 'mvn -o package'
sh 'mvn -o package'
}
post {
success {
@ -81,7 +77,7 @@ pipeline {
}
steps {
echo 'Generating sources...'
silentsh 'mvn -o source:jar'
sh 'mvn -o source:jar'
}
post {
success {
@ -96,7 +92,7 @@ pipeline {
}
steps {
echo 'Generaing javadocs...'
silentsh 'mvn -o javadoc:javadoc javadoc:jar'
sh 'mvn -o javadoc:javadoc javadoc:jar'
}
post {
success {
@ -113,13 +109,13 @@ pipeline {
stage ('verify') {
steps {
echo 'Performing integration testing...'
silentsh 'mvn -o verify'
sh 'mvn -o verify'
}
}
stage ('install') {
steps {
echo 'Installing artifacts to the local repository...'
silentsh 'mvn -o install'
sh 'mvn -o install'
}
}
stage ('deploy') {
@ -128,7 +124,7 @@ pipeline {
}
steps {
echo 'Deploying to repository...'
silentsh 'mvn -o deploy'
sh 'mvn -o deploy'
}
}
}