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/09/08 13:34:11 UTC
[incubator-hop] branch master updated: [BUILD] add override
parameter
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 89b9483 [BUILD] add override parameter
new b2bd636 Merge pull request #1043 from hansva/master
89b9483 is described below
commit 89b9483def96fc27581c2e431d4a05f2f6158a8b
Author: Hans Van Akelyen <ha...@gmail.com>
AuthorDate: Wed Sep 8 15:33:42 2021 +0200
[BUILD] add override parameter
---
Jenkinsfile | 14 +++++++-------
1 file changed, 7 insertions(+), 7 deletions(-)
diff --git a/Jenkinsfile b/Jenkinsfile
index d546a07..36b8019 100644
--- a/Jenkinsfile
+++ b/Jenkinsfile
@@ -48,7 +48,7 @@ pipeline {
}
parameters {
- booleanParam(name: 'CLEAN', defaultValue: true, description: 'Perform the build in clean workspace')
+ booleanParam(name: 'FORCE_BUILD', defaultValue: false, description: 'force the build to be executed (excldue docs)')
}
stages {
@@ -82,7 +82,7 @@ pipeline {
}
stage('Get POM Version') {
when {
- changeset pattern: "^(?!docs).*^(?!integration-tests).*" , comparator: "REGEXP"
+ anyOf { changeset pattern: "^(?!docs).*^(?!integration-tests).*" , comparator: "REGEXP" ; equals expected: true, actual: ${params.FORCE_BUILD} }
}
steps{
script {
@@ -93,7 +93,7 @@ pipeline {
}
stage('Test & Build') {
when {
- changeset pattern: "^(?!docs).*^(?!integration-tests).*" , comparator: "REGEXP"
+ anyOf { changeset pattern: "^(?!docs).*^(?!integration-tests).*" , comparator: "REGEXP" ; equals expected: true, actual: ${params.FORCE_BUILD} }
}
steps {
echo 'Test & Build'
@@ -113,7 +113,7 @@ pipeline {
}
stage('Unzip Apache Hop'){
when {
- changeset pattern: "^(?!docs).*^(?!integration-tests).*" , comparator: "REGEXP"
+ anyOf { changeset pattern: "^(?!docs).*^(?!integration-tests).*" , comparator: "REGEXP" ; equals expected: true, actual: ${params.FORCE_BUILD} }
}
steps{
sh "unzip ./assemblies/client/target/hop-client-*.zip -d ./assemblies/client/target/"
@@ -124,7 +124,7 @@ pipeline {
stage('Build Hop Docker Image') {
when {
branch 'master'
- changeset pattern: "^(?!docs).*^(?!integration-tests).*" , comparator: "REGEXP"
+ anyOf { changeset pattern: "^(?!docs).*^(?!integration-tests).*" , comparator: "REGEXP" ; equals expected: true, actual: ${params.FORCE_BUILD} }
}
steps {
echo 'Building Hop Docker Image'
@@ -140,7 +140,7 @@ pipeline {
stage('Build Hop Web Docker Image') {
when {
branch 'master'
- changeset pattern: "^(?!docs).*^(?!integration-tests).*" , comparator: "REGEXP"
+ anyOf { changeset pattern: "^(?!docs).*^(?!integration-tests).*" , comparator: "REGEXP" ; equals expected: true, actual: ${params.FORCE_BUILD} }
}
steps {
echo 'Building Hop Web Docker Image'
@@ -156,7 +156,7 @@ pipeline {
stage('Deploy'){
when {
branch 'master'
- changeset pattern: "^(?!docs).*^(?!integration-tests).*" , comparator: "REGEXP"
+ anyOf { changeset pattern: "^(?!docs).*^(?!integration-tests).*" , comparator: "REGEXP" ; equals expected: true, actual: ${params.FORCE_BUILD} }
}
steps{
echo 'Deploying'