mirror of
https://github.com/lxsang/ant-http
synced 2024-11-16 00:28:21 +01:00
Update Jenkinsfile
This commit is contained in:
parent
b864827f2c
commit
d4fa350a3a
18
Jenkinsfile
vendored
18
Jenkinsfile
vendored
@ -2,20 +2,8 @@ def build_antd()
|
|||||||
{
|
{
|
||||||
docker.image("xsangle/ci-tools:latest-" + env.arch).withRun("bash") {
|
docker.image("xsangle/ci-tools:latest-" + env.arch).withRun("bash") {
|
||||||
sh '''
|
sh '''
|
||||||
set -e
|
printenv
|
||||||
cd $WORKSPACE
|
uname -a
|
||||||
[ -d build ] && rm -rf build
|
|
||||||
mkdir -p build/$arch/etc/systemd/system/
|
|
||||||
mkdir -p build/$arch/opt/www
|
|
||||||
[ -f Makefile ] && make clean
|
|
||||||
libtoolize
|
|
||||||
aclocal
|
|
||||||
autoconf
|
|
||||||
automake --add-missing
|
|
||||||
./configure --prefix=/usr
|
|
||||||
make
|
|
||||||
DESTDIR=$WORKSPACE/build/$arch make install
|
|
||||||
cp $WORKSPACE/build/usr/etc/antd-config.ini build/$arch/opt/www/config.ini.example
|
|
||||||
'''
|
'''
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
@ -43,7 +31,7 @@ pipeline{
|
|||||||
stage('Build AMD64') {
|
stage('Build AMD64') {
|
||||||
steps {
|
steps {
|
||||||
script{
|
script{
|
||||||
env.arch = "amd64"
|
env.arch = "arm64"
|
||||||
}
|
}
|
||||||
build_antd()
|
build_antd()
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user