Skip to content

Commit

Permalink
2.37
Browse files Browse the repository at this point in the history
  • Loading branch information
hydazz committed May 27, 2023
1 parent 5ce97fc commit dad4255
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 6 deletions.
6 changes: 3 additions & 3 deletions Jenkinsfile
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@ pipeline {
environment {
BUILDS_DISCORD=credentials('build_webhook_url')
GITHUB_TOKEN=credentials('github_token')
EXT_RELEASE = '2.35' // change glibc version here
EXT_RELEASE = '2.37' // change glibc version here
IG_USER = 'imagegenius'
IG_REPO = 'docker-glibc-builder'
DOCKERHUB_IMAGE = 'imagegenius/glibc-builder'
Expand Down Expand Up @@ -148,12 +148,12 @@ pipeline {
script{
if (currentBuild.currentResult == "SUCCESS"){
sh ''' curl -X POST -H "Content-Type: application/json" --data '{"avatar_url": "https://wiki.jenkins.io/JENKINS/attachments/2916393/57409617.png","embeds": [{"color": 1681177,\
"description": "**'${IG_REPO}' Build '${BUILD_NUMBER}' ({{ ig_branch }})**\\n**Job:** '${RUN_DISPLAY_URL}'\\n"}],\
"description": "**'${IG_REPO}' Build '${BUILD_NUMBER}'**\\n**Job:** '${RUN_DISPLAY_URL}'\\n"}],\
"username": "Jenkins"}' ${BUILDS_DISCORD} '''
}
else {
sh ''' curl -X POST -H "Content-Type: application/json" --data '{"avatar_url": "https://wiki.jenkins.io/JENKINS/attachments/2916393/57409617.png","embeds": [{"color": 16711680,\
"description": "**'${IG_REPO}' Build '${BUILD_NUMBER}' Failed! ({{ ig_branch }})**\\n**Job:** '${RUN_DISPLAY_URL}'\\n"}],\
"description": "**'${IG_REPO}' Build '${BUILD_NUMBER}' Failed!**\\n**Job:** '${RUN_DISPLAY_URL}'\\n"}],\
"username": "Jenkins"}' ${BUILDS_DISCORD} '''
}
}
Expand Down
7 changes: 4 additions & 3 deletions root/builder
Original file line number Diff line number Diff line change
@@ -1,15 +1,16 @@
#!/usr/bin/env bash

set -eo pipefail; [[ "$TRACE" ]] && set -x
set -eo pipefail
[[ "$TRACE" ]] && set -x

main() {
declare version="${1:-$EXT_RELEASE}" prefix="${2:-$PREFIX_DIR}"

: "${version:?}" "${prefix:?}"

{
wget -qO- "https://ftpmirror.gnu.org/libc/glibc-$version.tar.gz" \
| tar zxf -
wget -qO- "https://ftpmirror.gnu.org/libc/glibc-$version.tar.gz" |
tar zxf -
mkdir -p /glibc-build && cd /glibc-build
"/glibc-$version/configure" \
--prefix="$prefix" \
Expand Down

0 comments on commit dad4255

Please sign in to comment.