Skip to content

Commit

Permalink
[I-Build-Tests] Fix breakage of fundamental commands by tools-sections
Browse files Browse the repository at this point in the history
Declaring a jdk and ant the usual way in the 'tools' section, because of
unknown reasons, breaks the usage of fundamental commands like xvnc,
pkill and sh.
  • Loading branch information
HannesWell committed Apr 29, 2024
1 parent 188c4ab commit 22d8a41
Show file tree
Hide file tree
Showing 3 changed files with 15 additions and 9 deletions.
8 changes: 5 additions & 3 deletions JenkinsJobs/AutomatedTests/I_unit_cen64_gtk3_java17.groovy
Original file line number Diff line number Diff line change
Expand Up @@ -85,9 +85,11 @@ spec:
stages {
stage('Run tests'){
tools {
jdk 'openjdk-jdk17-latest'
ant 'apache-ant-latest'
environment {
// Declaring a jdk and ant the usual way in the 'tools' section, because of unknown reasons, breaks the usage of fundamental commands like xvnc, pkill and sh
JAVA_HOME = tool(type:'jdk', name:'openjdk-jdk17-latest')
ANT_HOME = tool(type:'ant', name:'apache-ant-latest')
PATH = "$JAVA_HOME/bin:$ANT_HOME/bin:$PATH"
}
steps {
container ('custom'){
Expand Down
8 changes: 5 additions & 3 deletions JenkinsJobs/AutomatedTests/I_unit_cen64_gtk3_java21.groovy
Original file line number Diff line number Diff line change
Expand Up @@ -85,9 +85,11 @@ spec:
stages {
stage('Run tests'){
tools {
jdk 'openjdk-jdk21-latest'
ant 'apache-ant-latest'
environment {
// Declaring a jdk and ant the usual way in the 'tools' section, because of unknown reasons, breaks the usage of fundamental commands like xvnc, pkill and sh
JAVA_HOME = tool(type:'jdk', name:'openjdk-jdk21-latest')
ANT_HOME = tool(type:'ant', name:'apache-ant-latest')
PATH = "$JAVA_HOME/bin:$ANT_HOME/bin:$PATH"
}
steps {
container ('custom'){
Expand Down
8 changes: 5 additions & 3 deletions JenkinsJobs/AutomatedTests/I_unit_cen64_gtk3_java22.groovy
Original file line number Diff line number Diff line change
Expand Up @@ -85,9 +85,11 @@ spec:
stages {
stage('Run tests'){
tools {
jdk 'openjdk-jdk22-latest'
ant 'apache-ant-latest'
environment {
// Declaring a jdk and ant the usual way in the 'tools' section, because of unknown reasons, breaks the usage of fundamental commands like xvnc, pkill and sh
JAVA_HOME = tool(type:'jdk', name:'openjdk-jdk22-latest')
ANT_HOME = tool(type:'ant', name:'apache-ant-latest')
PATH = "$JAVA_HOME/bin:$ANT_HOME/bin:$PATH"
}
steps {
container ('custom'){
Expand Down

0 comments on commit 22d8a41

Please sign in to comment.