Skip to content

Commit e5c4074

Browse files
authored
Jenkins build (promotion) - ANT build javadoc fix for JDK 11 and reflect security changes at ci.eclipse.org (#1809)
Signed-off-by: Radek Felcman <[email protected]>
1 parent 8602762 commit e5c4074

8 files changed

+15
-57
lines changed

antbuild.xml

+1
Original file line numberDiff line numberDiff line change
@@ -210,6 +210,7 @@
210210
<pathelement path="${eclipselink.plugins}/${wsdl.jar}"/>
211211
<pathelement path="${eclipselink.plugins}/${wsrs-api.jar}"/>
212212
<pathelement path="${eclipselink.plugins}/${slf4j-api.jar}"/>
213+
<pathelement path="${eclipselink.plugins}/org.eclipse.persistence.jpa.jpql_${version.string}.jar"/>
213214
<pathelement path="${eclipselink.plugins}/org.eclipse.persistence.nosql_${version.string}.jar"/>
214215
<pathelement path="${eclipselink.plugins}/org.eclipse.persistence.extension_${version.string}.jar"/>
215216
<pathelement path="${eclipselink.util.plugins}/org.eclipse.persistence.oracleddlparser_1.0.0.v201807030954.jar"/>

autobuild.xml

+4-1
Original file line numberDiff line numberDiff line change
@@ -72,7 +72,8 @@
7272
<target name="build-continuous" description="Trigger an automated build and run the tests if source changes exist"
7373
depends="clean, build-no-javadoc, build-utils, test-srg"
7474
/>
75-
<target name="build-milestone" depends="promote-init, sign-and-wait, regen-archives, publish-milestone, create-tag" description="Promote a build: nightly to milestone or milestone to release ('release' is a special milestone in this case)"
75+
<target name="build-milestone" description="Promote a build: nightly to milestone or milestone to release ('release' is a special milestone in this case)"
76+
depends="clean, build, promote-init, sign-and-wait, regen-archives, publish-milestone, create-tag"
7677
/>
7778
<target name="build-snapshot" depends="snapshot-init, promote-init, extract-signed-artifacts, regen-installer-archive, regen-plugin-archive, regen-nosql-archive, gen-build-for-maven, publish-milestone-artifacts, publish-milestone-nexus" description="Promote build to snapshot repository"
7879
/>
@@ -228,6 +229,8 @@
228229
</target>
229230

230231
<target name="common-init">
232+
<echo message="Loading user properties from: '${user.home}/build.properties'"/>
233+
<property file="${user.home}/build.properties"/>
231234
<property file="${basedir}/autobuild.properties"/>
232235

233236
<!-- Set version.string appropriately. variable should only be used for -->

etc/jenkins/init.sh

+1-1
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,7 @@
1313
# N/A
1414

1515
echo '-[ EclipseLink Init ]-----------------------------------------------------------'
16-
16+
. ${WORKSPACE}/etc/jenkins/setEnvironment.sh
1717
mkdir -p $HOME/extension.lib.external/mavenant
1818

1919
#DOWNLOAD SOME DEPENDENCIES

etc/jenkins/promote.groovy

+3-3
Original file line numberDiff line numberDiff line change
@@ -138,7 +138,7 @@ spec:
138138
container('el-build') {
139139
// Prepare EclipseLink environment
140140
sh """
141-
etc/jenkins/promote_el_init.sh
141+
etc/jenkins/init.sh
142142
"""
143143
}
144144
}
@@ -180,9 +180,9 @@ spec:
180180
echo ${RELEASE}
181181
if [ ${RELEASE} == 'false' ]
182182
then
183-
${HOME}/etc/jenkins/publish_milestone.sh
183+
etc/jenkins/publish_milestone.sh
184184
else
185-
${HOME}/etc/jenkins/publish_release.sh
185+
etc/jenkins/publish_release.sh
186186
fi
187187
"""
188188
}

etc/jenkins/promote.sh

+2-2
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
#!/usr/bin/env bash
22
#****************************************************************************************
3-
# Copyright (c) 2012, 2022 Oracle and/or its affiliates. All rights reserved.
3+
# Copyright (c) 2012, 2023 Oracle and/or its affiliates. All rights reserved.
44
# This program and the accompanying materials are made available under the
55
# terms of the Eclipse Public License v1.0 and Eclipse Distribution License v. 1.0
66
# which accompanies this distribution.
@@ -369,7 +369,7 @@ callAnt() {
369369
fi
370370

371371
#Invoke Antscript for Branch specific promotion
372-
arguments="-Dbuild.deps.dir=${BldDepsDir} -Dreleng.repo.dir=${RELENG_REPO} -Dgit.exec=${GIT_EXEC} -Declipselink.root.download.dir=${DNLD_DIR} -Dsigning.dir=${SIGN_DIR} -DM2_HOME=${M2_HOME}"
372+
arguments="-Dbuild.deps.dir=${BldDepsDir} -Dreleng.repo.dir=${RELENG_REPO} -Dgit.exec=${GIT_EXEC} -Declipselink.root.download.dir=${DNLD_DIR} -Dsigning.dir=${SIGN_DIR} -DM2_HOME=${M2_HOME} -Dhudson.workspace=${WORKSPACE}"
373373
arguments="${arguments} -Dbranch.name=${branch_nm} -Drelease.version=${version} -Dbuild.type=${milestone} -Dbranch=${branch}"
374374
arguments="${arguments} -Dversion.qualifier=${qualifier} -Dbuild.date=${blddate} -Dgit.hash=${githash}"
375375
echo " sign = '${SIGN}'"

etc/jenkins/promote_el_init.sh

-46
This file was deleted.

etc/jenkins/publish_milestone.sh

+2-2
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
#!/bin/bash -e
22
#
3-
# Copyright (c) 2019 Oracle and/or its affiliates. All rights reserved.
3+
# Copyright (c) 2019, 2023 Oracle and/or its affiliates. All rights reserved.
44
#
55
# This program and the accompanying materials are made available under the
66
# terms of the Eclipse Distribution License v. 1.0, which is available at
@@ -14,7 +14,7 @@
1414
#==========================
1515
# Basic Env Setup
1616
#
17-
. ${HOME}/etc/jenkins/setEnvironment.sh
17+
. ${WORKSPACE}/etc/jenkins/setEnvironment.sh
1818

1919

2020
echo '-[ EclipseLink Publish to Milestones ]-----------------------------------------------------------'

etc/jenkins/publish_release.sh

+2-2
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
#!/bin/bash -e
22
#
3-
# Copyright (c) 2019 Oracle and/or its affiliates. All rights reserved.
3+
# Copyright (c) 2019, 2023 Oracle and/or its affiliates. All rights reserved.
44
#
55
# This program and the accompanying materials are made available under the
66
# terms of the Eclipse Distribution License v. 1.0, which is available at
@@ -14,7 +14,7 @@
1414
#==========================
1515
# Basic Env Setup
1616
#
17-
. ${HOME}/etc/jenkins/setEnvironment.sh
17+
. ${WORKSPACE}/etc/jenkins/setEnvironment.sh
1818

1919

2020
echo '-[ EclipseLink Publish to Releases ]-----------------------------------------------------------'

0 commit comments

Comments
 (0)