Update Jenkinsfile

This commit is contained in:
Dany LE 2022-08-01 12:10:24 +02:00 committed by GitHub
parent d2ebccecf0
commit b435495850
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

11
Jenkinsfile vendored
View File

@ -29,17 +29,26 @@ pipeline{
{ {
stage('Build') { stage('Build') {
steps { steps {
sshCommand remote: remote, command: ''' sshCommand remote: remote, command: '''
set -e set -e
export WORKSPACE="jenkins/workspace/ant-http" export WORKSPACE="jenkins/workspace/ant-http"
cd $WORKSPACE cd $WORKSPACE
[ -d build ] && rm build
mkdir build
libtoolize libtoolize
aclocal aclocal
autoconf autoconf
automake --add-missing automake --add-missing
./configure --prefix=/usr ./configure --prefix=/usr
make make
DESTDIR=./build make install
''' '''
script {
// only useful for any master branch
if (env.BRANCH_NAME =~ /^master/) {
archiveArtifacts artifacts: 'build/', fingerprint: true
}
}
} }
} }
} }