Separate Jenkins CI build Pipeline Steps into individual Bash shell scripts.

This commit is contained in:
John Blum
2021-04-05 14:09:08 -07:00
parent 0ba6de396e
commit 01347ac4af
5 changed files with 36 additions and 0 deletions

8
ci/check.sh Executable file
View File

@@ -0,0 +1,8 @@
#!/bin/bash -x
set -eou pipefail
mkdir -p /tmp/jenkins-home
chown -R 1001:1001 .
GRADLE_OPTS="-Duser.name=jenkins -Duser.home=/tmp/jenkins-home" \
./gradlew --no-daemon --refresh-dependencies --stacktrace clean check

6
ci/cleanupArtifacts.sh Executable file
View File

@@ -0,0 +1,6 @@
#!/bin/bash -x
set -eou pipefail
chown -R 1001:1001 .
rm -Rf ./.gradle
rm -Rf ./.m2

10
ci/cleanupGemFiles.sh Executable file
View File

@@ -0,0 +1,10 @@
#!/bin/bash -x
set -eou pipefail
chown -R 1001:1001 .
rm -Rf `find . -name "BACKUPDEFAULT*"`
rm -Rf `find . -name "ConfigDiskDir*"`
rm -Rf `find . -name "locator*" | grep -v "src" | grep -v "locator-application"`
rm -Rf `find . -name "newDB"`
rm -Rf `find . -name "server" | grep -v "src"`
rm -Rf `find . -name "*.log"`

6
ci/deployArtifacts.sh Executable file
View File

@@ -0,0 +1,6 @@
#!/bin/bash -x
set -eou pipefail
GRADLE_OPTS="-Duser.name=jenkins -Duser.home=/tmp/jenkins-home" \
./gradlew deployArtifacts finalizeDeployArtifacts --no-daemon --refresh-dependencies --stacktrace -Psigning.secretKeyRingFile=$SIGNING_KEYRING_FILE -Psigning.keyId=$SPRING_SIGNING_KEYID -Psigning.password=$SIGNING_PASSWORD -PossrhUsername=$OSSRH_USERNAME -PossrhPassword=$OSSRH_PASSWORD -PartifactoryUsername=$ARTIFACTORY_USERNAME -PartifactoryPassword=$ARTIFACTORY_PASSWORD

6
ci/deployDocs.sh Executable file
View File

@@ -0,0 +1,6 @@
#!/bin/bash -x
set -eou pipefail
GRADLE_OPTS="-Duser.name=jenkins -Duser.home=/tmp/jenkins-home" \
./gradlew --no-daemon --refresh-dependencies --stacktrace -PdeployDocsSshKeyPath=$DEPLOY_SSH_KEY -PdeployDocsSshUsername=$SPRING_DOCS_USERNAME deployDocs