-
Notifications
You must be signed in to change notification settings - Fork 213
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
6 changed files
with
52 additions
and
123 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
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 |
---|---|---|
@@ -1,20 +1,8 @@ | ||
#!/bin/bash -e | ||
|
||
TEMP_DIR=`mktemp -d` | ||
|
||
branch=$1 | ||
author=$2 | ||
|
||
if [ -z $branch ]; then | ||
branch='main' | ||
fi | ||
|
||
if [ -z $author ]; then | ||
author='kiegroup' | ||
fi | ||
|
||
echo "----- Cloning pipelines repo from ${author} on branch ${branch}" | ||
git clone --single-branch --branch ${branch} https://github.com/${author}/kogito-pipelines.git $TEMP_DIR | ||
|
||
echo '----- Launching seed tests' | ||
${TEMP_DIR}/dsl/seed/scripts/seed_test.sh ${TEMP_DIR} | ||
file=$(mktemp) | ||
# For more usage of the script, use ./test.sh -h | ||
# TODO to update before merge | ||
curl -o ${file} https://raw.githubusercontent.com/radtriste/kogito-pipelines/split_nightly_jobs/dsl/seed/scripts/seed_test.sh | ||
chmod u+x ${file} | ||
${file} $@ |
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,6 @@ | ||
void execute(def pipelinesCommon) { | ||
echo 'Hello from Git Stage Files script' | ||
githubscm.findAndStageNotIgnoredFiles('pom.xml') | ||
} | ||
|
||
return this |
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,14 @@ | ||
void execute(def pipelinesCommon) { | ||
echo 'Hello from init script' | ||
if (pipelinesCommon.isRelease() || pipelinesCommon.isCreatePR()) { | ||
// Verify version is set | ||
assert pipelinesCommon.getKogitoVersion() | ||
|
||
if (pipelinesCommon.isRelease()) { | ||
// Verify if on right release branch | ||
assert pipelinesCommon.getGitBranch() == util.getReleaseBranchFromVersion(pipelinesCommon.getKogitoVersion()) | ||
} | ||
} | ||
} | ||
|
||
return this |
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,6 @@ | ||
void execute(def pipelinesCommon) { | ||
maven.mvnVersionsSet(pipelinesCommon.getDefaultMavenCommand(), pipelinesCommon.getKogitoVersion(), !pipelinesCommon.isRelease()) | ||
maven.mvnSetVersionProperty(pipelinesCommon.getDefaultMavenCommand(), 'version.org.kie', pipelinesCommon.getDroolsVersion()) | ||
} | ||
|
||
return this |
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