Skip to content

Commit

Permalink
disable relative url redirect
Browse files Browse the repository at this point in the history
Signed-off-by: Olivier Lamy <[email protected]>
  • Loading branch information
olamy committed Jan 31, 2024
1 parent 00e8392 commit e93cd99
Show file tree
Hide file tree
Showing 4 changed files with 47 additions and 37 deletions.
34 changes: 19 additions & 15 deletions .github/workflows/maven.yml
Original file line number Diff line number Diff line change
Expand Up @@ -39,21 +39,25 @@ jobs:

steps:

# - name: Checkout Arquillian
# uses: actions/checkout@v4
# with:
# repository: 'arquillian/arquillian-container-jetty'
# ref: 'master'

# - name: Set up JDK
# uses: actions/setup-java@v4
# with:
# java-version: 17
# distribution: 'temurin'
# cache: 'maven'

# - name: Build Arquillian with Maven
# run: mvn install -B -U
- name: Checkout Arquillian
uses: actions/checkout@v4
with:
repository: 'arquillian/arquillian-container-jetty'
ref: 'master'

- name: Set up JDK
uses: actions/setup-java@v4
with:
java-version: 17
distribution: 'temurin'
cache: 'maven'

- name: Set up Maven
run:
mvn --errors --batch-mode --show-version org.apache.maven.plugins:maven-wrapper-plugin:3.2.0:wrapper -Dmaven=3.9.5

- name: Build Arquillian with Maven
run: ./mvnw install -B -U

- name: Checkout Servlet TCK
uses: actions/checkout@v4
Expand Down
40 changes: 20 additions & 20 deletions Jenkinsfile
Original file line number Diff line number Diff line change
Expand Up @@ -70,26 +70,26 @@ pipeline {
}
}

// stage("Checkout Build Arquillian Jetty") {
// steps {
// ws('arquillian') {
// deleteDir()
// checkout([$class: 'GitSCM',
// branches: [[name: "*/$ARQUILLIAN_JETTY_BRANCH"]],
// extensions: [[$class: 'CloneOption', depth: 1, noTags: true, shallow: true]],
// userRemoteConfigs: [[url: 'https://github.com/${GITHUB_ORG_ARQUILLIAN}/arquillian-container-jetty']]])
// timeout(time: 30, unit: 'MINUTES') {
// withEnv(["JAVA_HOME=${tool "$JDKBUILD"}",
// "PATH+MAVEN=${env.JAVA_HOME}/bin:${tool 'maven3'}/bin",
// "MAVEN_OPTS=-Xms2g -Xmx4g -Djava.awt.headless=true"]) {
// configFileProvider([configFile(fileId: 'oss-settings.xml', variable: 'GLOBAL_MVN_SETTINGS')]) {
// sh "mvn -ntp -s $GLOBAL_MVN_SETTINGS -V -B -U clean install -DskipTests -T3 -e -Denforcer.skip=true"
// }
// }
// }
// }
// }
// }
stage("Checkout Build Arquillian Jetty") {
steps {
ws('arquillian') {
deleteDir()
checkout([$class: 'GitSCM',
branches: [[name: "*/$ARQUILLIAN_JETTY_BRANCH"]],
extensions: [[$class: 'CloneOption', depth: 1, noTags: true, shallow: true]],
userRemoteConfigs: [[url: 'https://github.com/${GITHUB_ORG_ARQUILLIAN}/arquillian-container-jetty']]])
timeout(time: 30, unit: 'MINUTES') {
withEnv(["JAVA_HOME=${tool "$JDKBUILD"}",
"PATH+MAVEN=${env.JAVA_HOME}/bin:${tool 'maven3'}/bin",
"MAVEN_OPTS=-Xms2g -Xmx4g -Djava.awt.headless=true"]) {
configFileProvider([configFile(fileId: 'oss-settings.xml', variable: 'GLOBAL_MVN_SETTINGS')]) {
sh "mvn -ntp -s $GLOBAL_MVN_SETTINGS -V -B -U clean install -DskipTests -T3 -e -Denforcer.skip=true"
}
}
}
}
}
}


}
Expand Down
4 changes: 2 additions & 2 deletions pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -16,9 +16,9 @@
<maven.compiler.release>11</maven.compiler.release>
<junit.version>5.10.1</junit.version>
<slf4j.version>2.0.9</slf4j.version>
<arquillian.jetty.version>2.0.0.Final</arquillian.jetty.version>
<arquillian.jetty.version>2.0.1.Final-SNAPSHOT</arquillian.jetty.version>
<arquillian.jetty.artifactId>arquillian-jetty-embedded-12-ee9</arquillian.jetty.artifactId>
<jetty.version>12.0.2-SNAPSHOT</jetty.version> <!-- 11.0.9-SNAPSHOT -->
<jetty.version>12.0.6-SNAPSHOT</jetty.version> <!-- 11.0.9-SNAPSHOT -->
<surefire.version>3.2.5</surefire.version> <!-- 3.0.0-M7-SNAPSHOT -->
<jakarta.tck.version>6.1.0-SNAPSHOT</jakarta.tck.version>
<servlet.api.version>6.0.0</servlet.api.version>
Expand Down
6 changes: 6 additions & 0 deletions src/test/resources/arquillian.xml
Original file line number Diff line number Diff line change
Expand Up @@ -25,6 +25,9 @@
text/html iso-8859-1
</property>
<property name="h2cEnabled">true</property>
<property name="httpConfigurationProperties">
relativeRedirectAllowed false
</property>
</configuration>
</container>

Expand All @@ -49,6 +52,9 @@
<property name="sniRequired">false</property>
<property name="sniHostCheck">false</property>
<property name="h2cEnabled">true</property>
<property name="httpConfigurationProperties">
relativeRedirectAllowed false
</property>
</configuration>
</container>
</group>
Expand Down

0 comments on commit e93cd99

Please sign in to comment.