Skip to content

Commit

Permalink
add Jenkinsfile
Browse files Browse the repository at this point in the history
  • Loading branch information
WolverMinion committed Jun 28, 2020
1 parent 9703916 commit a517a89
Show file tree
Hide file tree
Showing 2 changed files with 136 additions and 88 deletions.
1 change: 0 additions & 1 deletion Jenkinsfile
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,5 @@ import org.jenkinsci.plugins.workflow.libs.Library
@Library(['jenkins-cx-shared-library@feature/new-stages']) _

PipelineGlobal(new PipelineMavenBuildConfig(logLevelType: LogLevelType.DEBUG)
.configStageJenkinsConvertPluginsTxt(true,true)
.configStageMavenCompile(true,true)
)
223 changes: 136 additions & 87 deletions pom.xml
Original file line number Diff line number Diff line change
@@ -1,98 +1,147 @@
<?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 https://maven.apache.org/xsd/maven-4.0.0.xsd">
<modelVersion>4.0.0</modelVersion>
<parent>
<groupId>org.springframework.boot</groupId>
<artifactId>spring-boot-starter-parent</artifactId>
<version>2.3.1.RELEASE</version>
<relativePath/> <!-- lookup parent from repository -->
</parent>
<groupId>com.cx.java.example</groupId>
<artifactId>springboot-sample-app</artifactId>
<version>0.0.1-SNAPSHOT</version>
<packaging>war</packaging>
<name>springboot-sample-app</name>
<description>Demo project for Spring Boot</description>
xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 https://maven.apache.org/xsd/maven-4.0.0.xsd">
<modelVersion>4.0.0</modelVersion>
<parent>
<groupId>org.springframework.boot</groupId>
<artifactId>spring-boot-starter-parent</artifactId>
<version>2.3.1.RELEASE</version>
<relativePath/> <!-- lookup parent from repository -->
</parent>
<groupId>com.cx.java.example</groupId>
<artifactId>springboot-sample-app</artifactId>
<version>0.0.1-SNAPSHOT</version>
<packaging>war</packaging>
<name>springboot-sample-app</name>
<description>Demo project for Spring Boot</description>

<properties>
<java.version>11</java.version>
</properties>
<properties>
<java.version>11</java.version>
</properties>

<scm>
<url>https://maven.pkg.github.com/Continuous-X/springboot-sample-app/</url>
</scm>
<scm>
<url>https://maven.pkg.github.com/Continuous-X/springboot-sample-app/</url>
</scm>

<dependencies>
<dependency>
<groupId>org.springframework.boot</groupId>
<artifactId>spring-boot-starter-actuator</artifactId>
</dependency>
<dependency>
<groupId>org.springframework.boot</groupId>
<artifactId>spring-boot-starter-security</artifactId>
</dependency>
<dependency>
<groupId>org.springframework.boot</groupId>
<artifactId>spring-boot-starter-web</artifactId>
</dependency>
<dependencies>
<dependency>
<groupId>org.springframework.boot</groupId>
<artifactId>spring-boot-starter-actuator</artifactId>
</dependency>
<dependency>
<groupId>org.springframework.boot</groupId>
<artifactId>spring-boot-starter-security</artifactId>
</dependency>
<dependency>
<groupId>org.springframework.boot</groupId>
<artifactId>spring-boot-starter-web</artifactId>
</dependency>

<dependency>
<groupId>io.micrometer</groupId>
<artifactId>micrometer-registry-influx</artifactId>
<scope>runtime</scope>
</dependency>
<dependency>
<groupId>org.springframework.boot</groupId>
<artifactId>spring-boot-starter-tomcat</artifactId>
<scope>provided</scope>
</dependency>
<dependency>
<groupId>org.springframework.boot</groupId>
<artifactId>spring-boot-starter-test</artifactId>
<scope>test</scope>
<exclusions>
<exclusion>
<groupId>org.junit.vintage</groupId>
<artifactId>junit-vintage-engine</artifactId>
</exclusion>
</exclusions>
</dependency>
<dependency>
<groupId>org.springframework.security</groupId>
<artifactId>spring-security-test</artifactId>
<scope>test</scope>
</dependency>
</dependencies>
<dependency>
<groupId>io.micrometer</groupId>
<artifactId>micrometer-registry-influx</artifactId>
<scope>runtime</scope>
</dependency>
<dependency>
<groupId>org.springframework.boot</groupId>
<artifactId>spring-boot-starter-tomcat</artifactId>
<scope>provided</scope>
</dependency>
<dependency>
<groupId>org.springframework.boot</groupId>
<artifactId>spring-boot-starter-test</artifactId>
<scope>test</scope>
<exclusions>
<exclusion>
<groupId>org.junit.vintage</groupId>
<artifactId>junit-vintage-engine</artifactId>
</exclusion>
</exclusions>
</dependency>
<dependency>
<groupId>org.springframework.security</groupId>
<artifactId>spring-security-test</artifactId>
<scope>test</scope>
</dependency>
</dependencies>

<build>
<plugins>
<plugin>
<groupId>org.springframework.boot</groupId>
<artifactId>spring-boot-maven-plugin</artifactId>
</plugin>
</plugins>
</build>
<build>
<plugins>
<plugin>
<groupId>org.springframework.boot</groupId>
<artifactId>spring-boot-maven-plugin</artifactId>
</plugin>
</plugins>
</build>

<distributionManagement>
<repository>
<id>github-cx</id>
<uniqueVersion>false</uniqueVersion>
<name>GitHub Continuous-X Apache Maven Packages</name>
<url>https://maven.pkg.github.com/Continuous-X/springboot-sample-app/</url>
</repository>
<snapshotRepository>
<id>github-cx</id>
<name>GitHub Continuous-X Apache Maven Packages</name>
<url>https://maven.pkg.github.com/Continuous-X/springboot-sample-app/</url>
</snapshotRepository>
</distributionManagement>
<distributionManagement>
<repository>
<id>github-cx</id>
<uniqueVersion>false</uniqueVersion>
<name>GitHub Continuous-X Apache Maven Packages</name>
<url>https://maven.pkg.github.com/Continuous-X/springboot-sample-app/</url>
</repository>
<snapshotRepository>
<id>github-cx</id>
<name>GitHub Continuous-X Apache Maven Packages</name>
<url>https://maven.pkg.github.com/Continuous-X/springboot-sample-app/</url>
</snapshotRepository>
</distributionManagement>

<repositories>
<repository>
<id>github-cx</id>
<url>https://maven.pkg.github.com/Continuous-X/springboot-sample-app/</url>
</repository>
</repositories>
<repositories>
<repository>
<id>github-cx</id>
<url>https://maven.pkg.github.com/Continuous-X/springboot-sample-app/</url>
</repository>
</repositories>

<profiles>
<profile>
<id>local-dev</id>
<activation>
<!--
<activeByDefault>false</activeByDefault>
-->
<os>
<family>Windows</family>
</os>
</activation>
<build>
<plugins>
<plugin>
<groupId>org.codehaus.gmavenplus</groupId>
<artifactId>gmavenplus-plugin</artifactId>
<version>1.9.0</version>
<executions>
<execution>
<goals>
<goal>addSources</goal>
<goal>compile</goal>
</goals>
</execution>
</executions>
<configuration>
<targetBytecode>1.8</targetBytecode>
<sources>
<source>
<directory>${project.basedir}</directory>
<includes>
<include>Jenkinsfile</include>
</includes>
</source>
</sources>
</configuration>
</plugin>
</plugins>
</build>
<dependencies>
<dependency>
<groupId>com.cx.jenkins.sharedlib</groupId>
<artifactId>jenkins-cx-shared-lib</artifactId>
<version>1.0.0-SNAPSHOT</version>
</dependency>
</dependencies>
</profile>
</profiles>

</project>

0 comments on commit a517a89

Please sign in to comment.