Loading
Build equinox security library for Mac
Loading...
5
Testing...
${
}
branch
master
skipCommit
Stops committing to repo at the end. Useful in debugging
1
migration
2
*/master
JENKINS_URL
TOKEN_NAME
Jenkins please retry a build
.*\[skip\W+ci\].*
H/5 * * * *
30
git config --global user.email "releng-bot@eclipse.org" git config --global user.name "Eclipse Releng Bot" git clone -b ${branch} ssh://genie.releng@git.eclipse.org:29418/equinox/rt.equinox.bundles.git
#/bin/bash -x pushd ${WORKSPACE}/rt.equinox.bundles/bundles/org.eclipse.equinox.security.macosx/keystoreNative git checkout ${branch} git status popd
#/bin/bash -x cd rt.equinox.bundles/bundles/org.eclipse.equinox.security.macosx/ tar cvzf ${WORKSPACE}/source.tar.gz *
#!/bin/bash -x fn-mac-sign () { filename=$1 mv ${filename} unsigned-${filename} curl -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 } curl -o libkeystoreNative.jnilib https://ci.eclipse.org/releng/job/cocoa-equinox-security-library/lastSuccessfulBuild/artifact/libkeystoreNative.jnilib libPath=${WORKSPACE}/rt.equinox.bundles/bundles/org.eclipse.equinox.security.macosx/ echo "Sign libs" set -x fn-mac-sign $(ls libkeystoreNative.jnilib) echo "Clean existing libs" rm ${libPath}/libkeystoreNative.jnilib echo "Copy new libs" cp libkeystoreNative.jnilib ${libPath}
#!/bin/bash -x git config --global user.email "releng-bot@eclipse.org" git config --global user.name "Eclipse Releng Bot" cd ${WORKSPACE}/rt.equinox.bundles git status git commit -a -m "Recompiled and signed Mac library" git status git log -2 if [[ "${skipCommit}" == "true" ]] then exit 0 fi git pull git push origin ${branch}
libkeystoreNative.jnilib