-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
#4 - Adjust jenkinsfiles, pom.xml, assembly configuration and site.xm…
…l enabling usage of Java 17, Tomcat 10.1 and current version of ets-common
- Loading branch information
Showing
5 changed files
with
41 additions
and
69 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,34 +1,36 @@ | ||
pipeline { | ||
agent any | ||
tools { | ||
maven 'mvn' | ||
jdk 'JDK 8' | ||
maven 'mvn396' | ||
jdk 'temurin-jdk17' | ||
} | ||
stages { | ||
stage('Preparation') { | ||
stage('Initialize') { | ||
steps{ | ||
deleteDir() | ||
sh 'git clone [email protected]:opengeospatial/ets-sps20.git .' | ||
sh ''' | ||
echo "PATH = ${PATH}" | ||
echo "M2_HOME = ${M2_HOME}" | ||
''' | ||
sh 'mvn --version' | ||
} | ||
} | ||
stage('Release') { | ||
steps{ | ||
sh 'mvn --version' | ||
sh 'mvn -Dresume=false -DdryRun=true release:prepare -DreleaseVersion=${releaseVersion} -DdevelopmentVersion=${developmentVersion}' | ||
sh 'mvn -Dresume=false release:prepare release:perform -Psign-artifacts-with-ogc -DreleaseVersion=${releaseVersion} -DdevelopmentVersion=${developmentVersion}' | ||
sh 'mvn -Dresume=false -DdryRun=true release:prepare -Psign-artifacts-with-ogc,integration-tests,docker -DreleaseVersion=${releaseVersion} -DdevelopmentVersion=${developmentVersion}' | ||
sh 'mvn -Dresume=false release:prepare release:perform -Psign-artifacts-with-ogc,integration-tests,docker -DreleaseVersion=${releaseVersion} -DdevelopmentVersion=${developmentVersion}' | ||
} | ||
} | ||
stage('Publication of site') { | ||
steps{ | ||
sh 'mvn --version' | ||
sh 'git checkout ${releaseVersion}' | ||
sh 'mvn clean install site site:stage scm-publish:publish-scm' | ||
} | ||
} | ||
stage('Results') { | ||
steps{ | ||
archive 'target/*' | ||
archiveArtifacts artifacts: 'target/*', allowEmptyArchive: true | ||
deleteDir() | ||
} | ||
} | ||
} | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,16 +1,16 @@ | ||
<?xml version="1.0" encoding="UTF-8"?> | ||
<project xmlns="http://maven.apache.org/POM/4.0.0" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd"> | ||
|
||
<project xmlns="http://maven.apache.org/POM/4.0.0" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" | ||
xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd"> | ||
|
||
<parent> | ||
<groupId>org.opengis.cite</groupId> | ||
<artifactId>ets-common</artifactId> | ||
<version>15-SNAPSHOT</version> | ||
</parent> | ||
|
||
<modelVersion>4.0.0</modelVersion> | ||
<artifactId>ets-sps20</artifactId> | ||
<version>1.12-SNAPSHOT</version> | ||
<packaging>pom</packaging> | ||
|
||
<name>OGC Sensor Planning Service 2.0.0 - Executable Test Suite</name> | ||
<description> | ||
|
@@ -20,13 +20,13 @@ | |
<licenses> | ||
<license> | ||
<name>Apache License, Version 2.0</name> | ||
<url>http://opensource.org/licenses/Apache-2.0</url> | ||
<url>https://opensource.org/licenses/Apache-2.0</url> | ||
</license> | ||
</licenses> | ||
|
||
<organization> | ||
<name>Open Geospatial Consortium</name> | ||
<url>http://www.opengeospatial.org</url> | ||
<url>https://www.ogc.org</url> | ||
</organization> | ||
<scm> | ||
<url>https://github.com/opengeospatial/ets-sps20</url> | ||
|
@@ -43,66 +43,40 @@ | |
<name>Rockygis</name> | ||
<url>https://github.com/rockygis</url> | ||
</developer> | ||
<developer> | ||
<name>Dirk Stenger</name> | ||
<url>https://github.com/dstenger</url> | ||
</developer> | ||
</developers> | ||
|
||
<properties> | ||
<ets-code>sps</ets-code> | ||
<spec-version>2.0.0</spec-version> | ||
<project.build.sourceEncoding>UTF-8</project.build.sourceEncoding> | ||
</properties> | ||
|
||
<build> | ||
<plugins> | ||
<plugin> | ||
<artifactId>maven-assembly-plugin</artifactId> | ||
<configuration> | ||
<descriptors> | ||
<descriptor>src/assembly/ctl.xml</descriptor> | ||
<descriptor>src/assembly/ctl-scripts.xml</descriptor> | ||
</descriptors> | ||
</configuration> | ||
<executions> | ||
<execution> | ||
<phase>package</phase> | ||
<goals> | ||
<goal>single</goal> | ||
</goals> | ||
</execution> | ||
</executions> | ||
</plugin> | ||
<plugin> | ||
<artifactId>maven-site-plugin</artifactId> | ||
<artifactId>maven-scm-publish-plugin</artifactId> | ||
</plugin> | ||
</plugins> | ||
</plugins> | ||
|
||
<pluginManagement> | ||
<plugins> | ||
<plugin> | ||
<groupId>io.fabric8</groupId> | ||
<artifactId>docker-maven-plugin</artifactId> | ||
<configuration> | ||
<dockerHost>http://localhost:2375</dockerHost> | ||
<images> | ||
<image> | ||
<name>ogccite/${project.artifactId}</name> | ||
<build> | ||
<dockerFileDir>${project.basedir}/src/docker</dockerFileDir> | ||
<tags> | ||
<tag>${project.version}-teamengine-${teamengine.version}</tag> | ||
</tags> | ||
<assembly> | ||
<inline> | ||
<fileSets> | ||
<fileSet> | ||
<directory>${project.build.directory}</directory> | ||
<outputDirectory>.</outputDirectory> | ||
<includes> | ||
<include>dependency/*teamengine-*.war</include> | ||
<include>dependency/*teamengine-*.zip</include> | ||
<include>*ets-*.zip</include> | ||
</includes> | ||
</fileSet> | ||
</fileSets> | ||
</inline> | ||
</assembly> | ||
</build> | ||
<run> | ||
<ports> | ||
<port>8081:8080</port> | ||
|
@@ -122,7 +96,7 @@ | |
</pluginManagement> | ||
</build> | ||
|
||
<profiles> | ||
<profiles> | ||
<profile> | ||
<id>docker</id> | ||
<build> | ||
|
@@ -161,10 +135,6 @@ | |
</profiles> | ||
|
||
<distributionManagement> | ||
<repository> | ||
<id>sonatype-nexus-staging</id> | ||
<url>https://oss.sonatype.org/service/local/staging/deploy/maven2/</url> | ||
</repository> | ||
<site> | ||
<id>site</id> | ||
<url>scm:git:[email protected]:opengeospatial/ets-sps20.git</url> | ||
|
File renamed without changes.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters