From b435495850094927c4ffab7e8f6f92b3dc5fd0a6 Mon Sep 17 00:00:00 2001 From: Dany LE Date: Mon, 1 Aug 2022 12:10:24 +0200 Subject: [PATCH] Update Jenkinsfile --- Jenkinsfile | 11 ++++++++++- 1 file changed, 10 insertions(+), 1 deletion(-) diff --git a/Jenkinsfile b/Jenkinsfile index efd6e0e..6b35de0 100644 --- a/Jenkinsfile +++ b/Jenkinsfile @@ -29,17 +29,26 @@ pipeline{ { stage('Build') { steps { - sshCommand remote: remote, command: ''' + sshCommand remote: remote, command: ''' set -e export WORKSPACE="jenkins/workspace/ant-http" cd $WORKSPACE + [ -d build ] && rm build + mkdir build libtoolize aclocal autoconf automake --add-missing ./configure --prefix=/usr make + DESTDIR=./build make install ''' + script { + // only useful for any master branch + if (env.BRANCH_NAME =~ /^master/) { + archiveArtifacts artifacts: 'build/', fingerprint: true + } + } } } }