Loading
Loading...
5
Testing...
${
}
increment
buildGtk
Linux platforms
buildWin32
Windows
buildCocoa
Mac OS X
branch
master
skipCommit
Stops committing to repo at the end. Useful in debugging
1
centos-8
2
*/master
JENKINS_URL
TOKEN_NAME
Jenkins please retry a build
.*\[skip\W+ci\].*
H/5 * * * *
60
git config --global user.email "eclipse-releng-bot@eclipse.org" git config --global user.name "Eclipse Releng Bot" git clone -b ${branch} git@github.com:eclipse-equinox/equinox.git rt.equinox.framework git clone -b ${branch} git@github.com:eclipse-equinox/equinox.binaries.git rt.equinox.binaries
#/bin/bash -x pushd ${WORKSPACE}/rt.equinox.binaries git checkout ${branch} git status popd pushd ${WORKSPACE}/rt.equinox.framework git checkout ${branch} git status popd
#/bin/bash -x echo ${WORKSPACE} pushd ${WORKSPACE}/rt.equinox.framework/features/org.eclipse.equinox.executable.feature/library if [ "$increment" == "true" ] then old_ver=$(grep "min_ver=" make_version.mak |cut -d= -f2) new_ver=$(expr $old_ver + 1) sed -i -e "s/$old_ver/$new_ver/" make_version.mak fi tar cvzf ${WORKSPACE}/source.tar.gz * popd
gtk-launcher-linux-ppc64le,gtk-launcher-linux-aarch64,gtk-launcher-linux-x86_64_pipeline,cocoa-launcher-macosx-x86_64,cocoa-launcher-macosx-aarch64,win32-launcher-windows-x86_64
buildNum=${BUILD_NUMBER} buildGtk=${buildGtk} buildWin32=${buildWin32} buildCocoa=${buildCocoa}
#!/bin/bash -x rm -rf ${WORKSPACE}/libs mkdir -p ${WORKSPACE}/libs pushd ${WORKSPACE}/libs rm -rf libs.tar.gz fn-win-sign () { filename=$1 mv ${filename} unsigned-${filename} curl -f -o ${filename} -F file=@unsigned-${filename} https://cbi.eclipse.org/authenticode/sign if [ $? -ne 0 ] then echo "Signing of ${filename} failed" exit 1 else rm unsigned-${filename} fi } fn-mac-sign () { filename=$1 mv ${filename} unsigned-${filename} curl -f -o ${filename} -F file=@unsigned-${filename} https://cbi.eclipse.org/macos/codesign/sign if [ $? -ne 0 ] then echo "Signing of ${filename} failed" exit 1 else rm unsigned-${filename} fi } fn-mac-sign-exe () { filename=$1 mv ${filename} unsigned-${filename} rm -f sdk.entitlement wget https://download.eclipse.org/eclipse/relengScripts/entitlement/sdk.entitlement curl -f -o ${filename} -F file=@unsigned-${filename} -F entitlements=@sdk.entitlement https://cbi.eclipse.org/macos/codesign/sign if [ $? -ne 0 ] then echo "Signing of ${filename} failed" exit 1 else rm unsigned-${filename} fi } if [ "${buildGtk}" == "true" ] then curl -o libs.tar.gz https://ci.eclipse.org/releng/job/gtk-launcher-linux-x86_64_pipeline/lastSuccessfulBuild/artifact/launcher/gtk/libs.tar.gz tar xzf libs.tar.gz os=linux ws=gtk arch=x86_64 binPath=${WORKSPACE}/rt.equinox.binaries/org.eclipse.equinox.executable/bin/${ws}/${os}/${arch} libPath=${WORKSPACE}/rt.equinox.binaries/org.eclipse.equinox.launcher.${ws}.${os}.${arch} echo "Clean existing libs" rm ${binPath}/eclipse rm ${libPath}/eclipse_*.so echo "Copy new libs" mv eclipse ${binPath} mv eclipse_*.so ${libPath} curl -o libs.tar.gz https://ci.eclipse.org/releng/job/gtk-launcher-linux-ppc64le/lastSuccessfulBuild/artifact/launcher/gtk/libs.tar.gz tar xzf libs.tar.gz os=linux ws=gtk arch=ppc64le binPath=${WORKSPACE}/rt.equinox.binaries/org.eclipse.equinox.executable/bin/${ws}/${os}/${arch} libPath=${WORKSPACE}/rt.equinox.binaries/org.eclipse.equinox.launcher.${ws}.${os}.${arch} echo "Clean existing libs" rm ${binPath}/eclipse rm ${libPath}/eclipse_*.so echo "Copy new libs" mv eclipse ${binPath} mv eclipse_*.so ${libPath} curl -o libs.tar.gz https://ci.eclipse.org/releng/job/gtk-launcher-linux-aarch64/lastSuccessfulBuild/artifact/launcher/gtk/libs.tar.gz tar xzf libs.tar.gz os=linux ws=gtk arch=aarch64 binPath=${WORKSPACE}/rt.equinox.binaries/org.eclipse.equinox.executable/bin/${ws}/${os}/${arch} libPath=${WORKSPACE}/rt.equinox.binaries/org.eclipse.equinox.launcher.${ws}.${os}.${arch} mkdir -p ${binPath} mkdir -p ${libPath} echo "Clean existing libs" rm -rf ${binPath}/eclipse rm -rf ${libPath}/eclipse_*.so echo "Copy new libs" mv eclipse ${binPath} mv eclipse_*.so ${libPath} fi if [ "${buildCocoa}" == "true" ] then curl -o libs.tar.gz https://ci.eclipse.org/releng/job/cocoa-launcher-macosx-x86_64/lastSuccessfulBuild/artifact/launcher/cocoa/libs.tar.gz tar xzf libs.tar.gz os=macosx ws=cocoa arch=x86_64 binPath=${WORKSPACE}/rt.equinox.binaries/org.eclipse.equinox.executable/bin/${ws}/${os}/${arch}/Eclipse.app/Contents/MacOS libPath=${WORKSPACE}/rt.equinox.binaries/org.eclipse.equinox.launcher.${ws}.${os}.${arch} echo "Sign libs" set -x fn-mac-sign $(ls eclipse_*.so) fn-mac-sign-exe eclipse echo "Clean existing libs" rm ${binPath}/eclipse rm ${libPath}/eclipse_*.so echo "Copy new libs" mv eclipse ${binPath} mv eclipse_*.so ${libPath} curl -o libs.tar.gz https://ci.eclipse.org/releng/job/cocoa-launcher-macosx-aarch64/lastSuccessfulBuild/artifact/launcher/cocoa/libs.tar.gz tar xzf libs.tar.gz os=macosx ws=cocoa arch=aarch64 binPath=${WORKSPACE}/rt.equinox.binaries/org.eclipse.equinox.executable/bin/${ws}/${os}/${arch}/Eclipse.app/Contents/MacOS libPath=${WORKSPACE}/rt.equinox.binaries/org.eclipse.equinox.launcher.${ws}.${os}.${arch} mkdir -p ${binPath} mkdir -p ${libPath} echo "Sign libs" fn-mac-sign $(ls eclipse_*.so) fn-mac-sign-exe eclipse set +x echo "Clean existing libs" rm ${binPath}/eclipse rm ${libPath}/eclipse_*.so echo "Copy new libs" mv eclipse ${binPath} mv eclipse_*.so ${libPath} fi if [ "${buildWin32}" == "true" ] then curl -o libs.tar.gz https://ci.eclipse.org/releng/job/win32-launcher-windows-x86_64/lastSuccessfulBuild/artifact/launcher/win32/libs.tar.gz tar xzf libs.tar.gz os=win32 ws=win32 arch=x86_64 binPath=${WORKSPACE}/rt.equinox.binaries/org.eclipse.equinox.executable/bin/${ws}/${os}/${arch} libPath=${WORKSPACE}/rt.equinox.binaries/org.eclipse.equinox.launcher.${ws}.${os}.${arch} echo "Sign libs" set -x for i in $(ls eclipse*) do fn-win-sign $i done set +x echo "Clean existing libs" rm ${binPath}/eclipse.exe rm ${binPath}/eclipsec.exe rm ${libPath}/eclipse_*.dll echo "Copy new libs" cp eclipse.exe ${binPath} cp eclipsec.exe ${binPath} cp eclipse_*.dll ${libPath} fi
#!/bin/bash -x git config --global user.email "eclipse-releng-bot@eclipse.org" git config --global user.name "Eclipse Releng Bot" cd ${WORKSPACE}/rt.equinox.binaries git add -A * git status cd ${WORKSPACE}/rt.equinox.framework/releng/org.eclipse.equinox.launcher.releng/ ant commitBinaries -DlocalGit=${WORKSPACE} git status if [[ "${skipCommit}" == "true" ]] then exit 0 fi cd ${WORKSPACE}/rt.equinox.framework git pull git push origin ${branch} cd ${WORKSPACE}/rt.equinox.binaries git pull git push origin ${branch} git push --tags
**/source.tar.gz