mirror of
https://github.com/lxsang/ant-http
synced 2024-12-25 16:28:21 +01:00
Update Jenkinsfile
This commit is contained in:
parent
d2ebccecf0
commit
b435495850
11
Jenkinsfile
vendored
11
Jenkinsfile
vendored
@ -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
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user