You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@hop.apache.org by ha...@apache.org on 2021/04/25 12:22:27 UTC
[incubator-hop] branch master updated: HOP-2804: fix stage triggers
This is an automated email from the ASF dual-hosted git repository.
hansva pushed a commit to branch master
in repository https://gitbox.apache.org/repos/asf/incubator-hop.git
The following commit(s) were added to refs/heads/master by this push:
new 9cc5402 HOP-2804: fix stage triggers
new 1fa7118 Merge pull request #766 from hansva/master
9cc5402 is described below
commit 9cc5402bd578e16c91ca603d3b0ed1c80789b2c5
Author: Hans Van Akelyen <ha...@gmail.com>
AuthorDate: Sun Apr 25 14:21:50 2021 +0200
HOP-2804: fix stage triggers
---
Jenkinsfile | 25 ++++++-------------------
1 file changed, 6 insertions(+), 19 deletions(-)
diff --git a/Jenkinsfile b/Jenkinsfile
index ab7bfc9..ab34404 100644
--- a/Jenkinsfile
+++ b/Jenkinsfile
@@ -82,10 +82,8 @@ pipeline {
}
stage('Get POM Version') {
when {
- not {
- changeset 'docs/**'
+ changeset pattern: "^(?!docs).*$" , comparator: "REGEXP"
}
- }
steps{
script {
env.POM_VERSION = sh script: 'mvn help:evaluate -Dexpression=project.version -q -DforceStdout', returnStdout: true
@@ -95,10 +93,8 @@ pipeline {
}
stage('Test & Build') {
when {
- not {
- changeset 'docs/**'
+ changeset pattern: "^(?!docs).*$" , comparator: "REGEXP"
}
- }
steps {
echo 'Test & Build'
@@ -117,11 +113,8 @@ pipeline {
}
stage('Unzip Apache Hop'){
when {
- branch 'master'
- not {
- changeset 'docs/**'
+ changeset pattern: "^(?!docs).*$" , comparator: "REGEXP"
}
- }
steps{
sh "unzip ./assemblies/client/target/hop-client-*.zip -d ./assemblies/client/target/"
sh "unzip ./assemblies/web/target/hop.war -d ./assemblies/web/target/webapp"
@@ -131,9 +124,7 @@ pipeline {
stage('Build Hop Docker Image') {
when {
branch 'master'
- not {
- changeset 'docs/**'
- }
+ changeset pattern: "^(?!docs).*$" , comparator: "REGEXP"
}
steps {
echo 'Building Hop Docker Image'
@@ -149,9 +140,7 @@ pipeline {
stage('Build Hop Web Docker Image') {
when {
branch 'master'
- not {
- changeset 'docs/**'
- }
+ changeset pattern: "^(?!docs).*$" , comparator: "REGEXP"
}
steps {
echo 'Building Hop Web Docker Image'
@@ -168,9 +157,7 @@ pipeline {
stage('Deploy'){
when {
branch 'master'
- not {
- changeset 'docs/**'
- }
+ changeset pattern: "^(?!docs).*$" , comparator: "REGEXP"
}
steps{
echo 'Deploying'