This is an automated email from the ASF dual-hosted git repository.
rantunes pushed a commit to branch kie-issues_755
in repository
https://gitbox.apache.org/repos/asf/incubator-kie-kogito-operator.git
The following commit(s) were added to refs/heads/kie-issues_755 by this push:
new 17f26da1 Force bash shell usage on sh steps
17f26da1 is described below
commit 17f26da1367f7d82886cf6f796c6c57889bd7200
Author: Rodrigo Antunes <[email protected]>
AuthorDate: Wed Dec 13 14:58:27 2023 -0300
Force bash shell usage on sh steps
---
.ci/jenkins/Jenkinsfile.deploy | 16 ++++++++--------
1 file changed, 8 insertions(+), 8 deletions(-)
diff --git a/.ci/jenkins/Jenkinsfile.deploy b/.ci/jenkins/Jenkinsfile.deploy
index 995f426a..f6142073 100644
--- a/.ci/jenkins/Jenkinsfile.deploy
+++ b/.ci/jenkins/Jenkinsfile.deploy
@@ -92,7 +92,7 @@ pipeline {
}
steps {
script {
- sh "#!/bin/bash make bump-version
new_version=${helper.getProjectVersion()}"
+ sh "#!/bin/bash -l \n make bump-version
new_version=${helper.getProjectVersion()}"
githubscm.commitChanges("Update project version to
${helper.getProjectVersion()}", {
sh '''
@@ -114,7 +114,7 @@ pipeline {
}
}
steps {
- sh '#!/bin/bash make test'
+ sh '#!/bin/bash -l \n make test'
}
post {
unsuccessful {
@@ -127,7 +127,7 @@ pipeline {
stage('Build Kogito Operator') {
steps {
- sh "#!/bin/bash source ~/virtenvs/cekit/bin/activate && make
BUILDER=${env.CONTAINER_ENGINE}"
+ sh "#!/bin/bash -l \n source ~/virtenvs/cekit/bin/activate &&
make BUILDER=${env.CONTAINER_ENGINE}"
}
post {
unsuccessful {
@@ -140,7 +140,7 @@ pipeline {
stage('Build Kogito CLI') {
steps {
- sh '#!/bin/bash make build-cli'
+ sh '#!/bin/bash -l \n make build-cli'
}
post {
success {
@@ -162,7 +162,7 @@ pipeline {
}
}
steps {
- sh '#!/bin/bash make olm-tests'
+ sh '#!/bin/bash -l \n make olm-tests'
}
post {
unsuccessful {
@@ -201,7 +201,7 @@ pipeline {
// Catch and set unstable so the temp image is
still pushed and we get the deployment properties,
// in case we decide to continue in the release
try {
- sh "#!/bin/bash make run-tests timeout=360
load_factor=2 concurrent=2 smoke=${params.SMOKE_TESTS_ONLY}
${getBDDParameters()}"
+ sh "#!/bin/bash -l \n make run-tests
timeout=360 load_factor=2 concurrent=2 smoke=${params.SMOKE_TESTS_ONLY}
${getBDDParameters()}"
} catch (err) {
testsFailed = true
util.archiveConsoleLog()
@@ -214,7 +214,7 @@ pipeline {
junit testResults: 'test/logs/**/junit.xml',
allowEmptyResults: false
}
cleanup {
- sh '#!/bin/bash cd test && go run
scripts/prune_namespaces.go'
+ sh '#!/bin/bash -l \n cd test && go run
scripts/prune_namespaces.go'
}
}
}
@@ -312,7 +312,7 @@ void sendNotification() {
}
String getOperatorVersion() {
- return sh(script: '#!/bin/bash source ./hack/env.sh > /dev/null && echo
$(getOperatorVersion)', returnStdout: true).trim()
+ return sh(script: '#!/bin/bash -l \n source ./hack/env.sh > /dev/null &&
echo $(getOperatorVersion)', returnStdout: true).trim()
}
// Special method to get the Openshift API in the lock because env is not
accessible yet
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]