Loading
Loading...
10
5
forceTagging
forceNativeBuilds
This supercedes <code>forcetagging</code> parameter
skipCommit
Stops committing to swt and swt binaries repo at the end. Useful in debugging
Testing...
${
}
1
centos-8
2
*/master
JENKINS_URL
TOKEN_NAME
Jenkins please retry a build
.*\[skip\W+ci\].*
H/5 * * * *
30
java -version git clone -b master git@github.com:eclipse-platform/eclipse.platform.swt.git git clone -b master git@github.com:eclipse-platform/eclipse.platform.swt.binaries.git git config --global user.email "eclipse-releng-bot@eclipse.org" git config --global user.name "Eclipse Releng Bot"
pushd ${WORKSPACE}/eclipse.platform.swt git checkout master git status git log -n 2 popd pushd ${WORKSPACE}/eclipse.platform.swt.binaries git checkout master git status git log -n 2 popd
ant -f ${WORKSPACE}/eclipse.platform.swt/bundles/org.eclipse.swt/buildSWT.xml check_compilation
ant -f ${WORKSPACE}/eclipse.platform.swt/bundles/org.eclipse.swt/buildSWT.xml new_build_with_create_file
#!/bin/bash -x if [[ "${forceNativeBuilds}" == "true" ]] then touch "${WORKSPACE}/tmp/build_changed.txt" touch "${WORKSPACE}/tmp/natives_changed.txt" NATIVES_CHANGED=true fi if [[ "${forceTagging}" == "true" ]] then touch "${WORKSPACE}/tmp/build_changed.txt" fi if [ -f "${WORKSPACE}/tmp/build_changed.txt" ] then BUILD_CHANGED=true else echo "Nothing to build, exiting...." exit 0 fi
tmp/build_changed.txt
tmp/natives_changed.txt
ant -f eclipse.platform.swt.binaries/bundles/binaries-parent/build.xml copy_library_src_and_create_zip -Dos=macosx -Dws=cocoa -Darch=x86_64 ant -f eclipse.platform.swt.binaries/bundles/binaries-parent/build.xml copy_library_src_and_create_zip -Dos=macosx -Dws=cocoa -Darch=aarch64 ant -f eclipse.platform.swt.binaries/bundles/binaries-parent/build.xml copy_library_src_and_create_zip -Dos=win32 -Dws=win32 -Darch=x86_64 ant -f eclipse.platform.swt.binaries/bundles/binaries-parent/build.xml copy_library_src_and_create_zip -Dos=linux -Dws=gtk -Darch=x86_64 ant -f eclipse.platform.swt.binaries/bundles/binaries-parent/build.xml copy_library_src_and_create_zip -Dos=linux -Dws=gtk -Darch=ppc64le ant -f eclipse.platform.swt.binaries/bundles/binaries-parent/build.xml copy_library_src_and_create_zip -Dos=linux -Dws=gtk -Darch=aarch64
gtk_linux_aarch64,gtk_linux_ppc64le,win32_x86_64,gtk_linux_x86_64,cocoa_x86_64,cocoa_aarch64
#!/bin/bash -x 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 -o ${filename} -F file=@unsigned-${filename} http://172.30.206.146:8282/macosx-signing-service/1.3.0-SNAPSHOT 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} wget https://git.eclipse.org/c/platform/eclipse.platform.releng.aggregator.git/plain/eclipse.platform.releng.tychoeclipsebuilder/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} rm sdk.entitlement fi } rm -rf ${WORKSPACE}/libs mkdir ${WORKSPACE}/libs pushd ${WORKSPACE}/libs #Mac-x86_64-start echo "Getting the mac libraries" curl -o mac_archive.zip https://ci.eclipse.org/releng/job/cocoa_x86_64/lastSuccessfulBuild/artifact/build/mac_archive.zip unzip mac_archive.zip -d . echo "Sign libs" for i in $(ls *.jnilib) do fn-mac-sign $i done cp *.jnilib ${WORKSPACE}/eclipse.platform.swt.binaries/bundles/org.eclipse.swt.cocoa.macosx.x86_64/ rm ${WORKSPACE}/libs/*.jnilib #Mac-x86_64-end #Mac-aarch64-start echo "Getting the mac libraries" curl -o macaarch64_archive.zip https://ci.eclipse.org/releng/job/cocoa_aarch64/lastSuccessfulBuild/artifact/build/macaarch64_archive.zip unzip macaarch64_archive.zip -d . echo "Sign libs" for i in $(ls *.jnilib) do fn-mac-sign $i done cp *.jnilib ${WORKSPACE}/eclipse.platform.swt.binaries/bundles/org.eclipse.swt.cocoa.macosx.aarch64/ rm ${WORKSPACE}/libs/*.jnilib #Mac-aarch64-end #Linux-x86-64-start echo "Removing existing webkitextensions" rm -r ${WORKSPACE}/eclipse.platform.swt.binaries/bundles/org.eclipse.swt.gtk.linux.x86_64/webkit*/ echo "Getting the linux-x86_64 libraries" curl -o gtk64_archive.zip https://ci.eclipse.org/releng/job/gtk_linux_x86_64/lastSuccessfulBuild/artifact/build/gtk64_archive.zip unzip gtk64_archive.zip -d . cp *.so ${WORKSPACE}/eclipse.platform.swt.binaries/bundles/org.eclipse.swt.gtk.linux.x86_64/ cp -r ${WORKSPACE}/libs/webkitextensions* ${WORKSPACE}/eclipse.platform.swt.binaries/bundles/org.eclipse.swt.gtk.linux.x86_64/ rm ${WORKSPACE}/libs/*.so rm -r ${WORKSPACE}/libs/webkit*/ #Linux-86-64-end #Linux-ppc64le-start echo "Removing existing webkitextensions" rm -r ${WORKSPACE}/eclipse.platform.swt.binaries/bundles/org.eclipse.swt.gtk.linux.ppc64le/webkit*/ echo "Getting the linux-ppc64le libraries" wget -O gtkppc64le_archive.tar.gz https://ci.eclipse.org/releng/job/gtk_linux_ppc64le/lastSuccessfulBuild/artifact/build/gtkppc64le_archive.tar.gz tar xzvf gtkppc64le_archive.tar.gz -C . cp ${WORKSPACE}/libs/*.so ${WORKSPACE}/eclipse.platform.swt.binaries/bundles/org.eclipse.swt.gtk.linux.ppc64le/ cp -r ${WORKSPACE}/libs/webkitextensions* ${WORKSPACE}/eclipse.platform.swt.binaries/bundles/org.eclipse.swt.gtk.linux.ppc64le/ rm ${WORKSPACE}/libs/*.so rm -r ${WORKSPACE}/libs/webkit*/ #Linux-ppc64le-end #Linux-aarch64-start echo "Removing existing webkitextensions" rm -r ${WORKSPACE}/eclipse.platform.swt.binaries/bundles/org.eclipse.swt.gtk.linux.aarch64/webkit*/ echo "Getting the linux-aarch64 libraries" wget -O gtkaarch64_archive.tar.gz https://ci.eclipse.org/releng/job/gtk_linux_aarch64/lastSuccessfulBuild/artifact/build/gtkaarch64_archive.tar.gz tar xzvf gtkaarch64_archive.tar.gz -C . cp ${WORKSPACE}/libs/*.so ${WORKSPACE}/eclipse.platform.swt.binaries/bundles/org.eclipse.swt.gtk.linux.aarch64/ cp -r ${WORKSPACE}/libs/webkitextensions* ${WORKSPACE}/eclipse.platform.swt.binaries/bundles/org.eclipse.swt.gtk.linux.aarch64/ rm ${WORKSPACE}/libs/*.so rm -r ${WORKSPACE}/libs/webkit*/ #Linux-aarch64-end #Windows-start echo "Getting the windows-64 bit libraries" curl -o win64_archive.zip https://ci.eclipse.org/releng/job/win32_x86_64/lastSuccessfulBuild/artifact/build/win64_archive.zip unzip win64_archive.zip -d . echo "Sign libs" for i in $(ls *.dll) do fn-win-sign $i done cp *.dll ${WORKSPACE}/eclipse.platform.swt.binaries/bundles/org.eclipse.swt.win32.win32.x86_64/ rm ${WORKSPACE}/libs/*.dll #Windows-end cd ${WORKSPACE}/eclipse.platform.swt.binaries echo "git status before add" git status git add --all * echo "git status after add" git status
git config --global user.email "eclipse-releng-bot@eclipse.org" git config --global user.name "Eclipse Releng Bot" ant -f ${WORKSPACE}/eclipse.platform.swt/bundles/org.eclipse.swt/buildInternal.xml write_qualifier -Dlib.dir=${WORKSPACE} -Dbuild_changed=true ant -f ${WORKSPACE}/eclipse.platform.swt/bundles/org.eclipse.swt/buildSWT.xml commit_poms_and_binaries ant -f ${WORKSPACE}/eclipse.platform.swt/bundles/org.eclipse.swt/buildSWT.xml tag_projects pushd ${WORKSPACE}/eclipse.platform.swt git status git log -p -2 popd pushd ${WORKSPACE}/eclipse.platform.swt.binaries git status git log -p -1 popd if [[ "${skipCommit}" != "true" ]] then ant -f ${WORKSPACE}/eclipse.platform.swt/bundles/org.eclipse.swt/buildSWT.xml push_remote_from_workspace fi
**