Separate Jenkins CI build Pipeline Steps into individual Bash shell scripts.
This commit is contained in:
8
ci/check.sh
Executable file
8
ci/check.sh
Executable 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
6
ci/cleanupArtifacts.sh
Executable 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
10
ci/cleanupGemFiles.sh
Executable 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
6
ci/deployArtifacts.sh
Executable 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
6
ci/deployDocs.sh
Executable 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
|
||||
Reference in New Issue
Block a user