Skip to content

Commit 5e82d97

Browse files
committed
Merge branch 'master' of https://github.com/codehaus-cargo/cargo
2 parents 4b2228e + 9444cd1 commit 5e82d97

File tree

3 files changed

+57
-61
lines changed

3 files changed

+57
-61
lines changed

.semaphore/semaphore.yml

Lines changed: 13 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -23,6 +23,7 @@ execution_time_limit:
2323
# Allow up to 5 to 6 Dependabot-triggered parallel branches
2424
hours: 18
2525
fail_fast:
26+
# Stop the workflow as soon as a job fails
2627
cancel:
2728
when: 'true'
2829
global_job_config:
@@ -107,7 +108,7 @@ blocks:
107108
- export JAVA_HOME=/tmp/cargo-build-binaries/jdk1.8.0_202
108109
- cd $ORIGINAL_PWD
109110
- mvn -version
110-
- cp ~/.m2/repository/org/apache/tomcat/tomcat/9.*/tomcat-*.zip core/samples/java/installs
111+
- cp ~/.m2/repository/org/apache/tomcat/tomcat/9.*/tomcat-*.zip core/samples/java/installs ; RM=0
111112
- mvn clean install -T 1C || mvn clean install -e --fail-at-end
112113
- name: Prepare for containers running on Java 6
113114
dependencies:
@@ -144,7 +145,7 @@ blocks:
144145
- sem-version java 17
145146
- cd $ORIGINAL_PWD
146147
- mvn -version
147-
- cp ~/.m2/repository/org/apache/tomcat/tomcat/9.*/tomcat-*.zip core/samples/java/installs
148+
- cp ~/.m2/repository/org/apache/tomcat/tomcat/9.*/tomcat-*.zip core/samples/java/installs ; RM=0
148149
- mvn clean install -T 1C || mvn clean install -e --fail-at-end
149150
- name: Build on Java 21
150151
dependencies:
@@ -161,7 +162,7 @@ blocks:
161162
- export JAVA_HOME=/tmp/cargo-build-binaries/jdk-21
162163
- cd $ORIGINAL_PWD
163164
- mvn -version
164-
- cp ~/.m2/repository/org/apache/tomcat/tomcat/9.*/tomcat-*.zip core/samples/java/installs
165+
- cp ~/.m2/repository/org/apache/tomcat/tomcat/9.*/tomcat-*.zip core/samples/java/installs ; RM=0
165166
- mvn clean install -T 1C || mvn clean install -e --fail-at-end
166167
- name: Geronimo 1.x
167168
dependencies:
@@ -581,11 +582,12 @@ blocks:
581582
- chmod +x jdk-6u45-linux-x64.bin
582583
- ./jdk-6u45-linux-x64.bin < <(echo y)
583584
- mvn -version
584-
- cd $ORIGINAL_PWD/core/samples/installs
585+
- cd $ORIGINAL_PWD/core/samples/java/installs
585586
- 'find . -type f -name resin-3.0.27.zip -size -5M -print -exec rm {} +'
586-
- 'wget -N --continue https://caucho.com/download/resin-3.0.27.zip ; RM=0'
587+
- 'wget -N --continue --no-check-certificate https://caucho.com/download/resin-3.0.27.zip ; RM=0'
587588
- cd $ORIGINAL_PWD/core/samples
588589
- mvn clean install -e -Presin3x -Dsurefire.rerunFailingTestsCount=2 -Dcargo.java.home.1_5=/tmp/cargo-build-binaries/jdk1.6.0_45
590+
- cd $ORIGINAL_PWD/core/samples/java
589591
- installs_size="`du -shb installs | cut -f1`" ; [ $installs_size -gt 5000000 ] && cache store "codehaus-cargo-cache-containers-$CARGO_BRANCH_ID" installs
590592
- name: Resin 3.1.x
591593
dependencies:
@@ -600,11 +602,12 @@ blocks:
600602
- chmod +x jdk-6u45-linux-x64.bin
601603
- ./jdk-6u45-linux-x64.bin < <(echo y)
602604
- mvn -version
603-
- cd $ORIGINAL_PWD/core/samples/installs
605+
- cd $ORIGINAL_PWD/core/samples/java/installs
604606
- 'find . -type f -name resin-3.1.16.zip -size -5M -print -exec rm {} +'
605-
- 'wget -N --continue https://caucho.com/download/resin-3.1.16.zip ; RM=0'
607+
- 'wget -N --continue --no-check-certificate https://caucho.com/download/resin-3.1.16.zip ; RM=0'
606608
- cd $ORIGINAL_PWD/core/samples
607609
- mvn clean install -e -Presin31x -Dsurefire.rerunFailingTestsCount=2 -Dcargo.java.home.1_5=/tmp/cargo-build-binaries/jdk1.6.0_45
610+
- cd $ORIGINAL_PWD/core/samples/java
608611
- installs_size="`du -shb installs | cut -f1`" ; [ $installs_size -gt 5000000 ] && cache store "codehaus-cargo-cache-containers-$CARGO_BRANCH_ID" installs
609612
- name: Tomcat 4.x
610613
dependencies:
@@ -886,11 +889,12 @@ blocks:
886889
- tar -xvzf jdk-8u202-linux-x64.tar.gz
887890
- export JAVA_HOME=/tmp/cargo-build-binaries/jdk1.8.0_202
888891
- mvn -version
889-
- cd $ORIGINAL_PWD/core/samples/installs
892+
- cd $ORIGINAL_PWD/core/samples/java/installs
890893
- 'find . -type f -name resin-resin-4.0.67.zip -size -5M -print -exec rm {} +'
891-
- 'wget -N --continue https://caucho.com/download/resin-4.0.67.zip ; RM=0'
894+
- 'wget -N --continue --no-check-certificate https://caucho.com/download/resin-4.0.67.zip ; RM=0'
892895
- cd $ORIGINAL_PWD/core/samples
893896
- mvn clean install -e -Presin4x -Dsurefire.rerunFailingTestsCount=2
897+
- cd $ORIGINAL_PWD/core/samples/java
894898
- installs_size="`du -shb installs | cut -f1`" ; [ $installs_size -gt 5000000 ] && cache store "codehaus-cargo-cache-containers-$CARGO_BRANCH_ID" installs
895899
- name: Tomcat 8.x
896900
dependencies:

core/documentation/src/main/java/org/codehaus/cargo/documentation/ConfluenceContainerDocumentationGenerator.java

Lines changed: 42 additions & 50 deletions
Original file line numberDiff line numberDiff line change
@@ -2056,68 +2056,60 @@ protected String generateSamplesInfoText(String containerId)
20562056
output.append(FileHandler.NEW_LINE);
20572057
output.append(FileHandler.NEW_LINE);
20582058

2059-
if (url.startsWith("https://caucho.com/download/"))
2059+
output.append("This container is automatically tested by the "
2060+
+ "[Continous Integration (CI) system|https://codehaus-cargo.semaphoreci.com/"
2061+
+ "projects/cargo] every time there is a code change.");
2062+
output.append(FileHandler.NEW_LINE);
2063+
if (containerId.startsWith("wildfly-swarm"))
20602064
{
2061-
output.append("Due incompatibilities between the Caucho Web site's SSL provider "
2062-
+ "and the Java stack, regular testing of the Resin containers is suspended.");
2065+
output.append("The WildFly Swarm version used during tests is: {{");
2066+
output.append(url);
2067+
output.append("}}");
20632068
}
20642069
else
20652070
{
2066-
output.append("This container is automatically tested by the "
2067-
+ "[Continous Integration (CI) system|https://codehaus-cargo.semaphoreci.com/"
2068-
+ "projects/cargo] every time there is a code change.");
2069-
output.append(FileHandler.NEW_LINE);
2070-
if (containerId.startsWith("wildfly-swarm"))
2071-
{
2072-
output.append("The WildFly Swarm version used during tests is: {{");
2073-
output.append(url);
2074-
output.append("}}");
2075-
}
2076-
else
2071+
output.append("The server used for tests is downloaded from: ");
2072+
output.append(url);
2073+
2074+
File pom = new File(SAMPLES_DIRECTORY, POM).getAbsoluteFile();
2075+
Document samples = XML_UTILS.loadXmlFromFile(pom.getAbsolutePath());
2076+
NodeList urls = samples.getElementsByTagName("cargo." + containerId + ".url");
2077+
if (urls.getLength() > 1)
20772078
{
2078-
output.append("The server used for tests is downloaded from: ");
2079-
output.append(url);
2079+
output.append(FileHandler.NEW_LINE);
2080+
output.append(FileHandler.NEW_LINE);
20802081

2081-
File pom = new File(SAMPLES_DIRECTORY, POM).getAbsoluteFile();
2082-
Document samples = XML_UTILS.loadXmlFromFile(pom.getAbsolutePath());
2083-
NodeList urls = samples.getElementsByTagName("cargo." + containerId + ".url");
2084-
if (urls.getLength() > 1)
2082+
List<String> sortedUrls = new ArrayList<String>(urls.getLength() - 1);
2083+
for (int i = 0; i < urls.getLength(); i++)
20852084
{
2086-
output.append(FileHandler.NEW_LINE);
2087-
output.append(FileHandler.NEW_LINE);
2088-
2089-
List<String> sortedUrls = new ArrayList<String>(urls.getLength() - 1);
2090-
for (int i = 0; i < urls.getLength(); i++)
2085+
String otherUrl = urls.item(i).getTextContent().trim();
2086+
if (!url.equals(otherUrl))
20912087
{
2092-
String otherUrl = urls.item(i).getTextContent().trim();
2093-
if (!url.equals(otherUrl))
2094-
{
2095-
sortedUrls.add(otherUrl);
2096-
}
2088+
sortedUrls.add(otherUrl);
20972089
}
2098-
Collections.sort(sortedUrls);
2090+
}
2091+
Collections.sort(sortedUrls);
20992092

2100-
output.append("Moreover, the below other branch");
2101-
if (urls.getLength() > 2)
2102-
{
2103-
output.append("es are");
2104-
}
2105-
else
2106-
{
2107-
output.append(" is");
2108-
}
2109-
output.append(" also tested by the CI system:");
2110-
for (String otherUrl : sortedUrls)
2111-
{
2112-
output.append(FileHandler.NEW_LINE);
2113-
output.append("* ");
2114-
output.append(otherUrl);
2115-
}
2116-
output.append(FileHandler.NEW_LINE);
2093+
output.append("Moreover, the below other branch");
2094+
if (urls.getLength() > 2)
2095+
{
2096+
output.append("es are");
2097+
}
2098+
else
2099+
{
2100+
output.append(" is");
2101+
}
2102+
output.append(" also tested by the CI system:");
2103+
for (String otherUrl : sortedUrls)
2104+
{
21172105
output.append(FileHandler.NEW_LINE);
2118-
output.append(
2119-
"Branches not tested by the CI might not be consistently supported.");
2106+
output.append("* ");
2107+
output.append(otherUrl);
21202108
}
2109+
output.append(FileHandler.NEW_LINE);
2110+
output.append(FileHandler.NEW_LINE);
2111+
output.append(
2112+
"Branches not tested by the CI might not be consistently supported.");
21212113
}
21222114
}
21232115
output.append(FileHandler.NEW_LINE);

pom.xml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1084,7 +1084,7 @@
10841084
<dependency>
10851085
<groupId>org.htmlunit</groupId>
10861086
<artifactId>htmlunit</artifactId>
1087-
<version>4.19.0</version>
1087+
<version>4.20.0</version>
10881088
<exclusions>
10891089
<exclusion>
10901090
<groupId>junit</groupId>
@@ -1314,7 +1314,7 @@
13141314
<plugin>
13151315
<groupId>org.apache.maven.plugins</groupId>
13161316
<artifactId>maven-resources-plugin</artifactId>
1317-
<version>3.3.1</version>
1317+
<version>3.4.0</version>
13181318
</plugin>
13191319
<plugin>
13201320
<groupId>org.apache.maven.plugins</groupId>

0 commit comments

Comments
 (0)