Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
1 change: 1 addition & 0 deletions JenkinsJobs/Releng/prepareNextDevCycle.jenkinsfile
Original file line number Diff line number Diff line change
Expand Up @@ -280,6 +280,7 @@ pipeline {
--include MANIFEST.MF \
--include feature.xml \
--include \\*.product \
--include \\*.sh \
--fixed-strings "${PREVIOUS_RELEASE_VERSION}")
# The eclipse-platform-parent/pom.xml contains the previous version in the baseline repository variable
if [[ -z "${matchingFiles}" ]] || [[ "${matchingFiles}" == 'eclipse-platform-parent/pom.xml' ]]; then
Expand Down
4 changes: 0 additions & 4 deletions JenkinsJobs/Releng/promoteBuild.jenkinsfile
Original file line number Diff line number Diff line change
Expand Up @@ -213,10 +213,6 @@ pipeline {
utilities.replaceAllInFile('eclipse.platform.releng.tychoeclipsebuilder/eclipse-junit-tests/src/main/resources/label.properties', [
'previousReleaseVersion=.*' : "previousReleaseVersion=${BUILD_MAJOR}.${BUILD_MINOR}",
])
utilities.replaceAllInFile('eclipse.platform.releng.tychoeclipsebuilder/eclipse-junit-tests/src/main/scripts/getPreviousRelease.sh', [
'R\\/R-\\d+.\\d+-\\d{12}' : "R/${DL_DROP_ID}",
'-\\d+.\\d+-linux-gtk-' : "-${BUILD_MAJOR}.${BUILD_MINOR}-linux-gtk-",
])
utilities.replaceAllInFile('production/testScripts/configuration/streamSpecific.properties', [
'previousReleaseLocation=.*' : 'previousReleaseLocation=https://\\${DOWNLOAD_HOST}/eclipse/downloads/drops4/' + DL_DROP_ID + '/',
'previousReleaseVersion=.*' : "previousReleaseVersion=${BUILD_MAJOR}.${BUILD_MINOR}",
Expand Down
4 changes: 1 addition & 3 deletions Jenkinsfile
Original file line number Diff line number Diff line change
Expand Up @@ -36,7 +36,7 @@ pipeline {
return !sh(script:'''
latestCommitID=$(curl https://download.eclipse.org/eclipse/relengScripts/state)
git diff --name-only ${latestCommitID} HEAD \\
production/ scripts/ cje-production/ eclipse.platform.releng.tychoeclipsebuilder/
production/ cje-production/ eclipse.platform.releng.tychoeclipsebuilder/
''', returnStdout: true).trim().isEmpty()
}
}
Expand All @@ -53,10 +53,8 @@ pipeline {
ssh [email protected] mkdir -p ${serverStaging}/testScripts
scp -r production/testScripts/bootstrap [email protected]:${serverStaging}/testScripts

scp -r scripts [email protected]:${serverStaging}
scp -r cje-production [email protected]:${serverStaging}

scp -r eclipse.platform.releng.tychoeclipsebuilder/eclipse/buildScripts [email protected]:${serverStaging}
scp -r eclipse.platform.releng.tychoeclipsebuilder/entitlement [email protected]:${serverStaging}

# Create state file that contains the current commitID for later diffs in this stage's conditional
Expand Down
1 change: 0 additions & 1 deletion RELEASE.md
Original file line number Diff line number Diff line change
Expand Up @@ -170,7 +170,6 @@ Previously they were created in ther own job:
- Update previous-release.baseline in [eclipse-platform-parent/pom.xml](eclipse-platform-parent/pom.xml)
- Update the last release build versions in [eclipse.platform.releng.tychoeclipsebuilder/eclipse-junit-tests/src/main/resources/equinoxp2tests.properties](eclipse.platform.releng.tychoeclipsebuilder/eclipse-junit-tests/src/main/resources/equinoxp2tests.properties)
- Update the previousReleaseVersion in [eclipse.platform.releng.tychoeclipsebuilder/eclipse-junit-tests/src/main/resources/label.properties](eclipse.platform.releng.tychoeclipsebuilder/eclipse-junit-tests/src/main/resources/label.properties)
- Update the name of the copied files in [eclipse.platform.releng.tychoeclipsebuilder/eclipse-junit-tests/src/main/scripts/getPreviousRelease.sh](eclipse.platform.releng.tychoeclipsebuilder/eclipse-junit-tests/src/main/scripts/getPreviousRelease.sh)

**RC2a Release**
* Sometimes there is a critical issue that requires a fix, if it's decided that one is needed then an RC2a (followed by RC2b, RC2c etc if necessary) is built from the maintenance branch and promoted using the RC2 process.
Expand Down
46 changes: 0 additions & 46 deletions cje-production/master-build.sh

This file was deleted.

13 changes: 0 additions & 13 deletions cje-production/readme.txt
Original file line number Diff line number Diff line change
Expand Up @@ -6,21 +6,8 @@ Here are some ground rules
100-199 - cloning repos and preparing them with right branches/tags and tagging(git operations)
200-299 - Maven operations(Updating pom with versions from manifest, create tar ball, build SDK/patch etc)
300-399 - gather parts (collecting different artifacts into a temporary build location)
400-499 - copy eclipse, repo and equinox artifacts to respective temporary download locations and generate necessary web pages
500-599 - Generate build reports (running p2.repo.analyzers and dirt report, jdeps reports etc)
600-699 - promote the build to download.eclipse.org.
700-799 - trigger tests and send mails

2. Every script should accept $ENV_FILE. this envrironment file is created at the preparing the build environment stage.
3. Every script should source "common-functions.shsource". This will contain common methods used across the scripts


Folder structure
root (cje-production)
readme.txt
mbscripts
common
master-build.sh
siteDir (temporary location to hold the website)


77 changes: 1 addition & 76 deletions cje-production/scripts/common-functions.shsource
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@
# USAGE: fn-write-property VAR_NAME
# VAR_NAME: Variable name to write as "variable=value" form
# This script assumes the following variables have been defined and are pointing
# to an appropriate file (see master-build.sh):
# to an appropriate file:
# BUILD_ENV_FILE=${buildDirectory}/buildproperties.shsource
# BUILD_ENV_FILE_PHP=${buildDirectory}/buildproperties.php
# BUILD_ENV_FILE_PROP=${buildDirectory}/buildproperties.properties
Expand All @@ -31,78 +31,3 @@ fn-write-property ()
echo "\$$1 = $2;" >> $BUILD_ENV_FILE_PHP
echo "$1 = $2" >> $BUILD_ENV_FILE_PROP
}

# this function executes command passed as command line parameter and
# if that command fails it exit with the same error code as the failed command
fn-run-command ()
{
$*
returnCode=$?
if [ $returnCode != 0 ]; then
echo "Execution of \"$*\" failed with return code : $returnCode"
exit $returnCode
fi
}

fn-notarize-macbuild ()
{
set -x
BUILD_DIR="$1"; shift
DMG="$1"; shift

pushd "$BUILD_DIR" || exit 5

PRIMARY_BUNDLE_ID="${DMG//-macosx-cocoa-x86_64.dmg/}"

retryCount=3
while [ ${retryCount} -gt 0 ]; do

RAW_RESPONSE=$(curl -sS --write-out "\n%{http_code}" -X POST -F file=@"${DMG}" -F 'options={"primaryBundleId": "'"${PRIMARY_BUNDLE_ID}"'", "staple": true};type=application/json' https://cbi.eclipse.org/macos/xcrun/notarize || : )

RESPONSE=$(head -n-1 <<<"${RAW_RESPONSE}")
STATUS_CODE=$(tail -n1 <<<"${RAW_RESPONSE}")

if [[ "${STATUS_CODE}" != "200" ]]; then
echo "Bad response from the server (status=${STATUS_CODE})"
echo "${RESPONSE}"
retryCount=$((retryCount - 1))
if [ $retryCount -eq 0 ]; then
echo "Notarization failed 3 times. Exiting"
exit 1
else
echo "Retrying..."
sleep 2
fi
fi

UUID=$(echo "$RESPONSE" | grep -Po '"uuid"\s*:\s*"\K[^"]+' || : )
STATUS=$(echo "$RESPONSE" | grep -Po '"status"\s*:\s*"\K[^"]+' || : )

while [[ ${STATUS} == 'IN_PROGRESS' ]]; do
sleep 1m
RESPONSE=$(curl -sS "https://cbi.eclipse.org/macos/xcrun/${UUID}/status")
STATUS=$(echo "$RESPONSE" | grep -Po '"status"\s*:\s*"\K[^"]+' || : )
done

if [[ ${STATUS} != 'COMPLETE' ]]; then
echo "Notarization failed: ${RESPONSE}"
retryCount=$((retryCount - 1))
if [ $retryCount -eq 0 ]; then
echo "Notarization failed 3 times. Exiting"
exit 1
else
echo "Retrying..."
sleep 2
fi
else
break
fi

done

rm "${DMG}"

curl -sSJO "https://cbi.eclipse.org/macos/xcrun/${UUID}/download"
popd || exit 5
set +x
}

This file was deleted.

This file was deleted.

This file was deleted.

11 changes: 0 additions & 11 deletions scripts/verifyFreezePeriod.sh

This file was deleted.

Loading