Skip to content

Commit

Permalink
[Build] Disallow Java security-manager in all I-/Y-/Smoke-tests
Browse files Browse the repository at this point in the history
  • Loading branch information
HannesWell committed Dec 14, 2024
1 parent 79f98a6 commit c63acd4
Show file tree
Hide file tree
Showing 7 changed files with 7 additions and 7 deletions.
2 changes: 1 addition & 1 deletion JenkinsJobs/AutomatedTests/I_unit_linux.groovy
Original file line number Diff line number Diff line change
Expand Up @@ -40,7 +40,7 @@ pipeline {
JAVA_HOME = ''' + BUILD_CONFIG.javaHome + '''
ANT_HOME = tool(type:'ant', name:'apache-ant-latest')
PATH = "${JAVA_HOME}/bin:${ANT_HOME}/bin:${PATH}"
ANT_OPTS = "-Djava.io.tmpdir=${WORKSPACE}/tmp -Djava.security.manager=allow"
ANT_OPTS = "-Djava.io.tmpdir=${WORKSPACE}/tmp"
}
steps {
xvnc(useXauthority: true) {
Expand Down
2 changes: 1 addition & 1 deletion JenkinsJobs/AutomatedTests/I_unit_mac.groovy
Original file line number Diff line number Diff line change
Expand Up @@ -37,7 +37,7 @@ pipeline {
JAVA_HOME = \'''' + ARCHS_JAVA_HOME[ARCH] + ''''
ANT_HOME = tool(type:'ant', name:'apache-ant-latest')
PATH = "${JAVA_HOME}/bin:${ANT_HOME}/bin:${PATH}"
ANT_OPTS = "-Djava.io.tmpdir=${WORKSPACE}/tmp -Djava.security.manager=allow"
ANT_OPTS = "-Djava.io.tmpdir=${WORKSPACE}/tmp"
}
steps {
cleanWs() // workspace not cleaned by default
Expand Down
2 changes: 1 addition & 1 deletion JenkinsJobs/AutomatedTests/I_unit_win32.groovy
Original file line number Diff line number Diff line change
Expand Up @@ -32,7 +32,7 @@ pipeline {
JAVA_HOME = 'C:\\\\Program Files\\\\Eclipse Adoptium\\\\jdk-17.0.11+9'
ANT_HOME = tool(type:'ant', name:'apache-ant-latest')
PATH = "${JAVA_HOME}\\\\bin;${ANT_HOME}\\\\bin;${PATH}"
ANT_OPTS = "-Djava.io.tmpdir=${WORKSPACE}\\\\tmp -Djava.security.manager=allow"
ANT_OPTS = "-Djava.io.tmpdir=${WORKSPACE}\\\\tmp"
}
steps {
cleanWs() // workspace not cleaned by default
Expand Down
2 changes: 1 addition & 1 deletion JenkinsJobs/SmokeTests/StartSmokeTests.jenkinsfile
Original file line number Diff line number Diff line change
Expand Up @@ -108,7 +108,7 @@ def runSmokeTest(Closure executorAgent, String agentId, String os, String arch,
withEnv([
"JAVA_HOME=${javaHome}", "ANT_HOME=${ antHome }",
"WORKSPACE=${pwd()}", "PATH=${javaHome}/bin:${antHome}/bin:${PATH}",
"ANT_OPTS=-Djava.io.tmpdir=${pwd()}/tmp -Djava.security.manager=allow"
"ANT_OPTS=-Djava.io.tmpdir=${pwd()}/tmp"
]) {
xvnc(useXauthority: true) {
if (os =='linux') {
Expand Down
2 changes: 1 addition & 1 deletion JenkinsJobs/YBuilds/Y_unit_linux.groovy
Original file line number Diff line number Diff line change
Expand Up @@ -37,7 +37,7 @@ pipeline {
JAVA_HOME = ''' + BUILD_CONFIG.javaHome + '''
ANT_HOME = tool(type:'ant', name:'apache-ant-latest')
PATH = "${JAVA_HOME}/bin:${ANT_HOME}/bin:${PATH}"
ANT_OPTS = "-Djava.io.tmpdir=${WORKSPACE}/tmp -Djava.security.manager=allow"
ANT_OPTS = "-Djava.io.tmpdir=${WORKSPACE}/tmp"
}
steps {
xvnc(useXauthority: true) {
Expand Down
2 changes: 1 addition & 1 deletion JenkinsJobs/YBuilds/Y_unit_mac.groovy
Original file line number Diff line number Diff line change
Expand Up @@ -36,7 +36,7 @@ pipeline {
JAVA_HOME = \'''' + BUILD_CONFIG.javaHome + ''''
ANT_HOME = tool(type:'ant', name:'apache-ant-latest')
PATH = "${JAVA_HOME}/bin:${ANT_HOME}/bin:${PATH}"
ANT_OPTS = "-Djava.io.tmpdir=${WORKSPACE}/tmp -Djava.security.manager=allow"
ANT_OPTS = "-Djava.io.tmpdir=${WORKSPACE}/tmp"
}
steps {
cleanWs() // workspace not cleaned by default
Expand Down
2 changes: 1 addition & 1 deletion JenkinsJobs/YBuilds/Y_unit_win32.groovy
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,7 @@ pipeline {
JAVA_HOME = 'C:\\\\Program Files\\\\Eclipse Adoptium\\\\jdk-17.0.11+9'
ANT_HOME = tool(type:'ant', name:'apache-ant-latest')
PATH = "${JAVA_HOME}\\\\bin;${ANT_HOME}\\\\bin;${PATH}"
ANT_OPTS = "-Djava.io.tmpdir=${WORKSPACE}\\\\tmp -Djava.security.manager=allow"
ANT_OPTS = "-Djava.io.tmpdir=${WORKSPACE}\\\\tmp"
}
steps {
cleanWs() // workspace not cleaned by default
Expand Down

0 comments on commit c63acd4

Please sign in to comment.