Skip to content

Commit

Permalink
test tycho 5.0
Browse files Browse the repository at this point in the history
Signed-off-by: Christian Dietrich <christian.dietrich@itemis.de>

[#2895] attempt to archive surefire reports in the hope to get a thread dump

Signed-off-by: Christian Dietrich <christian.dietrich.opensource@gmail.com>

in timeout see #3073

add another 10 mins

Signed-off-by: Christian Dietrich <christian.dietrich.opensource@gmail.com>
  • Loading branch information
cdietrich committed Nov 27, 2024
1 parent a11dec4 commit 33babf7
Show file tree
Hide file tree
Showing 2 changed files with 19 additions and 7 deletions.
17 changes: 11 additions & 6 deletions Jenkinsfile
Original file line number Diff line number Diff line change
Expand Up @@ -6,18 +6,18 @@ pipeline {
}

parameters {
choice(name: 'TARGET_PLATFORM', choices: ['r202403', 'r202406', 'r202409', 'r202412', 'latest'], description: 'Which Target Platform should be used?')
choice(name: 'TARGET_PLATFORM', choices: ['latest', 'r202203', 'r202206', 'r202209', 'r202212', 'r202303', 'r202306', 'r202309', 'r202312', 'r202403', 'r202406', 'r202409'], description: 'Which Target Platform should be used?')
// see https://wiki.eclipse.org/Jenkins#JDK
choice(name: 'JDK_VERSION', choices: [ '17', '21' ], description: 'Which JDK version should be used?')
choice(name: 'JDK_VERSION', choices: [ '21' , '17'], description: 'Which JDK version should be used?')
}

triggers {
parameterizedCron(env.BRANCH_NAME == 'main' ? '''
H H(0-1) * * * %TARGET_PLATFORM=r202403;JDK_VERSION=17
H H(3-4) * * * %TARGET_PLATFORM=latest;JDK_VERSION=21
parameterizedCron(env.BRANCH_NAME == 'cd_tycho50' ? '''
H H(13-14) * * * %TARGET_PLATFORM=latest;JDK_VERSION=17
''' : '')
}


options {
buildDiscarder(logRotator(numToKeepStr:'10'))
disableConcurrentBuilds()
Expand Down Expand Up @@ -65,7 +65,12 @@ pipeline {
steps {
xvnc(useXauthority: true) {
sh """
<<<<<<< HEAD
./full-build.sh --tp=${selectedTargetPlatform()} \
=======
./full-build.sh -Dsurefire.timeout=3000 --tp=${selectedTargetPlatform()} \
${javaVersion() == 11 ? '--toolchains releng/toolchains.xml -Pstrict-jdk-11' : ''} \
>>>>>>> 6247413133 (test tycho 5.0)
${javaVersion() == 17 ? '--toolchains releng/toolchains.xml -Pstrict-jdk-17' : ''} \
${javaVersion() == 21 ? '-Pstrict-jdk-21' : ''}
"""
Expand Down Expand Up @@ -97,7 +102,7 @@ pipeline {
archiveArtifacts artifacts: 'build/**, **/target/work/data/.metadata/.log, **/target/work/data/.metadata/bak*.log'
}
unsuccessful {
archiveArtifacts artifacts: 'org.eclipse.xtend.ide.swtbot.tests/screenshots/**, **/target/work/data/.metadata/.log, **/target/work/data/.metadata/bak*.log, **/hs_err_pid*.log'
archiveArtifacts artifacts: 'org.eclipse.xtend.ide.swtbot.tests/screenshots/**, **/target/work/data/.metadata/.log, **/target/work/data/.metadata/bak*.log, **/hs_err_pid*.log, **/target/surefire-reports/*'
}
cleanup {
script {
Expand Down
9 changes: 8 additions & 1 deletion pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -125,7 +125,7 @@

<properties>
<project.build.sourceEncoding>ISO-8859-1</project.build.sourceEncoding>
<tycho-version>4.0.10</tycho-version>
<tycho-version>5.0.0-SNAPSHOT</tycho-version>

<maven.compiler.source>17</maven.compiler.source>
<maven.compiler.target>17</maven.compiler.target>
Expand Down Expand Up @@ -848,6 +848,13 @@
</plugins>
</build>

<pluginRepositories>
<pluginRepository>
<id>tycho-snapshots</id>
<url>https://repo.eclipse.org/content/repositories/tycho-snapshots/</url>
</pluginRepository>
</pluginRepositories>

<distributionManagement>
<snapshotRepository>
<id>ossrh</id>
Expand Down

0 comments on commit 33babf7

Please sign in to comment.