mirror of
https://github.com/lxsang/ant-http
synced 2024-12-26 16:58:22 +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') {
|
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
|
||||||
|
}
|
||||||
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user