diff --git a/.github/workflows/build-windows.yml b/.github/workflows/build-windows.yml index 7579d9034f5..f03445fcb5e 100644 --- a/.github/workflows/build-windows.yml +++ b/.github/workflows/build-windows.yml @@ -26,4 +26,6 @@ jobs: # qa skips documentation - we check it on Jenkins CI # We skip checkstyle too - we check it on Jenkins CI run: ./apache-maven-3.9.9/bin/mvn -B -e clean install -Pstaging -Pqa '-Dcheckstyle.skip=true' + env: + DEVELOCITY_ACCESS_KEY: ${{ secrets.DEVELOCITY_API_TOKEN }} diff --git a/.gitignore b/.gitignore index 4bd8fbbef4d..1de6feeab8b 100644 --- a/.gitignore +++ b/.gitignore @@ -63,3 +63,4 @@ appserver/tests/appserv-tests/temppwd opendj-*.zip /opendj/ +.mvn/.develocity/develocity-workspace-id diff --git a/.mvn/develocity.xml b/.mvn/develocity.xml new file mode 100644 index 00000000000..9bf1567bde2 --- /dev/null +++ b/.mvn/develocity.xml @@ -0,0 +1,29 @@ + + + + https://develocity-staging.eclipse.org + + glassfish + + + 0.0.0.0 + + + + + + + #{isFalse(env['CI']) and isFalse(env['JENKINS_URL'])} + + + + false + + + false + #{isTrue(env['CI']) or isTrue(env['JENKINS_URL'])} + + + diff --git a/.mvn/extensions.xml b/.mvn/extensions.xml new file mode 100644 index 00000000000..fefea687cdd --- /dev/null +++ b/.mvn/extensions.xml @@ -0,0 +1,13 @@ + + + + com.gradle + develocity-maven-extension + 1.23 + + + com.gradle + common-custom-user-data-maven-extension + 2.0.1 + + diff --git a/Jenkinsfile b/Jenkinsfile index c73adb156e1..07bf1f386af 100644 --- a/Jenkinsfile +++ b/Jenkinsfile @@ -15,6 +15,12 @@ * SPDX-License-Identifier: EPL-2.0 OR GPL-2.0 WITH Classpath-exception-2.0 */ +def secrets = [ + [path: 'cbi/ee4j.glassfish/develocity.eclipse.org', secretValues: [ + [envVar: 'DEVELOCITY_ACCESS_KEY', vaultKey: 'api-token'] + ] + ] +] def dumpSysInfo() { sh """ @@ -66,12 +72,14 @@ def generateAntPodTemplate(job) { timeout(time: 1, unit: 'HOURS') { withAnt(installation: 'apache-ant-latest') { dumpSysInfo() - sh """ - mkdir -p ${WORKSPACE}/appserver/tests - tar -xzf ${WORKSPACE}/bundles/appserv_tests.tar.gz -C ${WORKSPACE}/appserver/tests - export CLASSPATH=${WORKSPACE}/glassfish7/javadb - ${WORKSPACE}/appserver/tests/gftest.sh run_test ${job} - """ + withVault([vaultSecrets: secrets]) { + sh """ + mkdir -p ${WORKSPACE}/appserver/tests + tar -xzf ${WORKSPACE}/bundles/appserv_tests.tar.gz -C ${WORKSPACE}/appserver/tests + export CLASSPATH=${WORKSPACE}/glassfish7/javadb + ${WORKSPACE}/appserver/tests/gftest.sh run_test ${job} + """ + } } } } finally { @@ -192,18 +200,20 @@ spec: checkout scm container('maven') { dumpSysInfo() - sh ''' - # Validate the structure in all submodules (especially version ids) - mvn -B -e -fae clean validate -Ptck,set-version-id,staging - # Until we fix ANTLR in cmp-support-sqlstore, broken in parallel builds. Just -Pfast after the fix. - mvn -B -e install -Pfastest,staging -T4C - ./gfbuild.sh archive_bundles - ./gfbuild.sh archive_embedded - mvn -B -e clean -Pstaging - tar -c -C ${WORKSPACE}/appserver/tests common_test.sh gftest.sh appserv-tests quicklook | gzip --fast > ${WORKSPACE}/bundles/appserv_tests.tar.gz - ls -la ${WORKSPACE}/bundles - ls -la ${WORKSPACE}/embedded - ''' + withVault([vaultSecrets: secrets]) { + sh ''' + # Validate the structure in all submodules (especially version ids) + mvn -B -e -fae clean validate -Ptck,set-version-id,staging + # Until we fix ANTLR in cmp-support-sqlstore, broken in parallel builds. Just -Pfast after the fix. + mvn -B -e install -Pfastest,staging -T4C + ./gfbuild.sh archive_bundles + ./gfbuild.sh archive_embedded + mvn -B -e clean -Pstaging + tar -c -C ${WORKSPACE}/appserver/tests common_test.sh gftest.sh appserv-tests quicklook | gzip --fast > ${WORKSPACE}/bundles/appserv_tests.tar.gz + ls -la ${WORKSPACE}/bundles + ls -la ${WORKSPACE}/embedded + ''' + } } archiveArtifacts artifacts: 'bundles/*.zip', onlyIfSuccessful: true archiveArtifacts artifacts: 'embedded/*', onlyIfSuccessful: true @@ -216,9 +226,11 @@ spec: container('maven') { dumpSysInfo() timeout(time: 1, unit: 'HOURS') { - sh ''' - mvn -B -e clean install -Pstaging,qa - ''' + withVault([vaultSecrets: secrets]) { + sh ''' + mvn -B -e clean install -Pstaging,qa + ''' + } } } } @@ -251,9 +263,11 @@ spec: container('maven') { dumpSysInfo() timeout(time: 1, unit: 'HOURS') { - sh ''' - mvn -B -e clean install -Pstaging -f docs -amd - ''' + withVault([vaultSecrets: secrets]) { + sh ''' + mvn -B -e clean install -Pstaging -f docs -amd + ''' + } } } }