forked from Activiti/Activiti
-
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.
Final Pom Alignment for CI/CD (Activiti#1996)
pom refactoring and refinements to keep properties local to repo
- Loading branch information
1 parent
c02fb53
commit b704314
Showing
14 changed files
with
528 additions
and
48 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
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -21,3 +21,7 @@ target | |
|
||
.factorypath | ||
.springBeans | ||
|
||
# Updatebot | ||
.updatebot-repos | ||
.updatebot-repos/** |
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 |
---|---|---|
@@ -0,0 +1,5 @@ | ||
github: | ||
organisations: | ||
- name: activiti | ||
repositories: | ||
- name: activiti-dependencies |
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 |
---|---|---|
@@ -0,0 +1,79 @@ | ||
pipeline { | ||
agent { | ||
label "jenkins-maven" | ||
} | ||
environment { | ||
ORG = 'activiti' | ||
APP_NAME = 'activiti' | ||
CHARTMUSEUM_CREDS = credentials('jenkins-x-chartmuseum') | ||
} | ||
stages { | ||
stage('CI Build and push snapshot') { | ||
when { | ||
branch 'PR-*' | ||
} | ||
environment { | ||
PREVIEW_VERSION = "0.0.0-SNAPSHOT-$BRANCH_NAME-$BUILD_NUMBER" | ||
PREVIEW_NAMESPACE = "$APP_NAME-$BRANCH_NAME".toLowerCase() | ||
HELM_RELEASE = "$PREVIEW_NAMESPACE".toLowerCase() | ||
} | ||
steps { | ||
container('maven') { | ||
sh "mvn versions:set -DnewVersion=$PREVIEW_VERSION" | ||
sh "mvn install" | ||
sh 'export VERSION=$PREVIEW_VERSION' | ||
} | ||
|
||
} | ||
} | ||
stage('Build Release') { | ||
when { | ||
branch 'develop' | ||
} | ||
steps { | ||
container('maven') { | ||
// ensure we're not on a detached head | ||
sh "git checkout develop" | ||
sh "git config --global credential.helper store" | ||
|
||
sh "jx step git credentials" | ||
// so we can retrieve the version in later steps | ||
sh "echo \$(jx-release-version) > VERSION" | ||
sh "mvn versions:set -DnewVersion=\$(cat VERSION)" | ||
sh "git add --all" | ||
sh "git commit -m 'release \$(cat VERSION)' --allow-empty" | ||
sh "git tag -fa v\$(cat VERSION) -m 'Release version \$(cat VERSION)'" | ||
sh "git push origin v\$(cat VERSION)" | ||
} | ||
dir ('./charts/activiti') { | ||
container('maven') { | ||
sh "make tag" | ||
} | ||
} | ||
container('maven') { | ||
sh 'mvn clean deploy' | ||
|
||
sh 'export VERSION=`cat VERSION` | ||
sh "git config --global credential.helper store" | ||
sh "jx step git credentials" | ||
sh "updatebot push-version --kind maven org.activiti:activiti-core-dependencies \$(cat VERSION)" | ||
} | ||
} | ||
} | ||
} | ||
post { | ||
always { | ||
cleanWs() | ||
} | ||
failure { | ||
input """Pipeline failed. | ||
We will keep the build pod around to help you diagnose any failures. | ||
Select Proceed or Abort to terminate the build pod""" | ||
} | ||
} | ||
} |
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
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
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
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
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 |
---|---|---|
@@ -0,0 +1,125 @@ | ||
<?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"> | ||
<modelVersion>4.0.0</modelVersion> | ||
<parent> | ||
<groupId>org.activiti</groupId> | ||
<artifactId>activiti-root</artifactId> | ||
<version>7.0.0-SNAPSHOT</version> | ||
</parent> | ||
<artifactId>activiti-core-dependencies</artifactId> | ||
<packaging>pom</packaging> | ||
<name>Activiti :: Dependencies BOM (Bill Of Materials)</name> | ||
<dependencyManagement> | ||
<dependencies> | ||
<!-- Activiti Modules for managed dependencies --> | ||
<dependency> | ||
<groupId>org.activiti.api</groupId> | ||
<artifactId>activiti-api-dependencies</artifactId> | ||
<version>${activiti-api.version}</version> | ||
<type>pom</type> | ||
<scope>import</scope> | ||
</dependency> | ||
<dependency> | ||
<groupId>org.activiti</groupId> | ||
<artifactId>activiti-api-impl</artifactId> | ||
<version>${activiti.version}</version> | ||
</dependency> | ||
<dependency> | ||
<groupId>org.activiti</groupId> | ||
<artifactId>activiti-api-model-shared-impl</artifactId> | ||
<version>${activiti.version}</version> | ||
</dependency> | ||
<dependency> | ||
<groupId>org.activiti</groupId> | ||
<artifactId>activiti-api-runtime-shared-impl</artifactId> | ||
<version>${activiti.version}</version> | ||
</dependency> | ||
<dependency> | ||
<groupId>org.activiti</groupId> | ||
<artifactId>activiti-identity-basic</artifactId> | ||
<version>${activiti.version}</version> | ||
</dependency> | ||
<dependency> | ||
<groupId>org.activiti</groupId> | ||
<artifactId>activiti-api-process-model-impl</artifactId> | ||
<version>${activiti.version}</version> | ||
</dependency> | ||
<dependency> | ||
<groupId>org.activiti</groupId> | ||
<artifactId>activiti-api-process-runtime-impl</artifactId> | ||
<version>${activiti.version}</version> | ||
</dependency> | ||
<dependency> | ||
<groupId>org.activiti</groupId> | ||
<artifactId>activiti-api-task-model-impl</artifactId> | ||
<version>${activiti.version}</version> | ||
</dependency> | ||
<dependency> | ||
<groupId>org.activiti</groupId> | ||
<artifactId>activiti-api-task-runtime-impl</artifactId> | ||
<version>${activiti.version}</version> | ||
</dependency> | ||
<dependency> | ||
<groupId>org.activiti</groupId> | ||
<artifactId>activiti-engine</artifactId> | ||
<version>${activiti.version}</version> | ||
</dependency> | ||
<dependency> | ||
<groupId>org.activiti</groupId> | ||
<artifactId>activiti-spring</artifactId> | ||
<version>${activiti.version}</version> | ||
</dependency> | ||
<dependency> | ||
<groupId>org.activiti</groupId> | ||
<artifactId>activiti-spring-boot-starter</artifactId> | ||
<version>${activiti.version}</version> | ||
</dependency> | ||
<dependency> | ||
<groupId>org.activiti</groupId> | ||
<artifactId>activiti-spring-identity</artifactId> | ||
<version>${activiti.version}</version> | ||
</dependency> | ||
<dependency> | ||
<groupId>org.activiti</groupId> | ||
<artifactId>activiti-spring-security</artifactId> | ||
<version>${activiti.version}</version> | ||
</dependency> | ||
<dependency> | ||
<groupId>org.activiti</groupId> | ||
<artifactId>activiti-spring-security-policies</artifactId> | ||
<version>${activiti.version}</version> | ||
</dependency> | ||
<dependency> | ||
<groupId>org.activiti</groupId> | ||
<artifactId>activiti-bpmn-model</artifactId> | ||
<version>${activiti.version}</version> | ||
</dependency> | ||
<dependency> | ||
<groupId>org.activiti</groupId> | ||
<artifactId>activiti-image-generator</artifactId> | ||
<version>${activiti.version}</version> | ||
</dependency> | ||
<dependency> | ||
<groupId>org.activiti</groupId> | ||
<artifactId>activiti-bpmn-converter</artifactId> | ||
<version>${activiti.version}</version> | ||
</dependency> | ||
<dependency> | ||
<groupId>org.activiti</groupId> | ||
<artifactId>activiti-json-converter</artifactId> | ||
<version>${activiti.version}</version> | ||
</dependency> | ||
<dependency> | ||
<groupId>org.activiti</groupId> | ||
<artifactId>activiti-bpmn-layout</artifactId> | ||
<version>${activiti.version}</version> | ||
</dependency> | ||
<dependency> | ||
<groupId>org.activiti</groupId> | ||
<artifactId>activiti-process-validation</artifactId> | ||
<version>${activiti.version}</version> | ||
</dependency> | ||
</dependencies> | ||
</dependencyManagement> | ||
</project> |
Oops, something went wrong.