This repository has been archived by the owner on Oct 20, 2023. It is now read-only.
forked from FRRouting/frr
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #1 from pureport/release/7.3-pureport1
Release 7.3-pureport1
- Loading branch information
Showing
4 changed files
with
91 additions
and
3 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,60 @@ | ||
pipeline { | ||
agent any | ||
options { | ||
disableConcurrentBuilds() | ||
} | ||
environment { | ||
DOCKER_REPO = "docker.dev.pureport.com" | ||
DEB_BUILDER_IMAGE = "pureport/deb-builder" | ||
UID = getUid() | ||
GID = getGid() | ||
} | ||
stages { | ||
stage('Build') { | ||
when { | ||
branch "pureport/*" | ||
} | ||
steps { | ||
script { | ||
def workspace = pwd() | ||
sh "git fetch --tags" | ||
sh "docker run --rm -v ${workspace}:/src -v ${workspace}:/output -e USER=${env.UID} -e GROUP=${env.GID} ${env.DOCKER_REPO}/${env.DEB_BUILDER_IMAGE} /src/build-debs.sh" | ||
} | ||
} | ||
} | ||
stage('Add to Aptly repo') { | ||
when { | ||
branch "pureport/stable/*" | ||
} | ||
steps { | ||
script { | ||
echo "Add to Aptly repo..." | ||
sh "aptly repo add frr ." | ||
} | ||
} | ||
} | ||
} | ||
post { | ||
always { | ||
/* clean up our workspace */ | ||
deleteDir() | ||
} | ||
success { | ||
slackSend(color: '#30A452', message: "SUCCESS: <${env.BUILD_URL}|${env.JOB_NAME}#${env.BUILD_NUMBER}>") | ||
} | ||
unstable { | ||
slackSend(color: '#DD9F3D', message: "UNSTABLE: <${env.BUILD_URL}|${env.JOB_NAME}#${env.BUILD_NUMBER}>") | ||
} | ||
failure { | ||
slackSend(color: '#D41519', message: "FAILED: <${env.BUILD_URL}|${env.JOB_NAME}#${env.BUILD_NUMBER}>") | ||
} | ||
} | ||
} | ||
|
||
def getUid() { | ||
sh(returnStdout: true, script: "id -u").trim() | ||
} | ||
|
||
def getGid() { | ||
sh(returnStdout: true, script: "id -g").trim() | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,29 @@ | ||
#!/bin/bash -e | ||
|
||
EXTRA_VERSION="-pureport1" | ||
DEBIAN_FRONTEND=noninteractive | ||
|
||
# Make read-write copy of source code | ||
mkdir -p /build | ||
cp -a /src /build/source | ||
cd /build/source | ||
|
||
# Install build dependencies | ||
apt-get update | ||
apt-get install -y \ | ||
git autoconf automake libtool make libreadline-dev texinfo \ | ||
pkg-config libpam0g-dev libjson-c-dev bison flex python3-pytest \ | ||
libc-ares-dev python3-dev libsystemd-dev python-ipaddress python3-sphinx \ | ||
install-info build-essential libsystemd-dev libsnmp-dev perl libcap-dev \ | ||
chrpath gawk fakeroot debhelper devscripts libpcre3-dev wget | ||
wget https://ci1.netdef.org/artifact/LIBYANG-YANGRELEASE/shared/build-10/Debian-AMD64-Packages/libyang-dev_0.16.105-1_amd64.deb | ||
wget https://ci1.netdef.org/artifact/LIBYANG-YANGRELEASE/shared/build-10/Debian-AMD64-Packages/libyang0.16_0.16.105-1_amd64.deb | ||
dpkg -i libyang*.deb | ||
|
||
# Version and build packages | ||
./tools/tarsource.sh -V -e "${EXTRA_VERSION}" | ||
dpkg-buildpackage -Ppkg.frr.nortrlib | ||
|
||
# Copy packages to output dir with user's permissions | ||
chown -R $USER:$GROUP /build | ||
cp -a /build/*.deb /output/ |