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
11876c6e29
commit
b864827f2c
34
Jenkinsfile
vendored
34
Jenkinsfile
vendored
@ -2,8 +2,20 @@ 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 '''
|
||||||
printenv
|
set -e
|
||||||
uname -a
|
cd $WORKSPACE
|
||||||
|
[ -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
|
||||||
'''
|
'''
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
@ -37,15 +49,6 @@ pipeline{
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
stage('Build ARM64') {
|
stage('Build ARM64') {
|
||||||
agent {
|
|
||||||
docker {
|
|
||||||
image ' xsangle/ci-tools:latest-arm64'
|
|
||||||
// Run the container on the node specified at the
|
|
||||||
// top-level of the Pipeline, in the same workspace,
|
|
||||||
// rather than on a new node entirely:
|
|
||||||
reuseNode true
|
|
||||||
}
|
|
||||||
}
|
|
||||||
steps {
|
steps {
|
||||||
script{
|
script{
|
||||||
env.arch = "arm64"
|
env.arch = "arm64"
|
||||||
@ -54,15 +57,6 @@ pipeline{
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
stage('Build ARM') {
|
stage('Build ARM') {
|
||||||
agent {
|
|
||||||
docker {
|
|
||||||
image ' xsangle/ci-tools:latest-arm'
|
|
||||||
// Run the container on the node specified at the
|
|
||||||
// top-level of the Pipeline, in the same workspace,
|
|
||||||
// rather than on a new node entirely:
|
|
||||||
reuseNode true
|
|
||||||
}
|
|
||||||
}
|
|
||||||
steps {
|
steps {
|
||||||
script{
|
script{
|
||||||
env.arch = "arm"
|
env.arch = "arm"
|
||||||
|
Loading…
Reference in New Issue
Block a user