Commit Graph

17 Commits

Author SHA1 Message Date
John Blum
87cacad589 Refactor Jenkins CI build (Jenkinsfile) to use ci/pipeline.properties to parameterize the build.
* Map and set the 'jenkins' user home directory (/home/jenkins) on the host (Jenkins server / worker node) filesystem to the Docker Container (virtual) filesystem's /tmp/jenkins-home directory.
* Change Docker Container 'inside' environment settings when deploying artifacts and docs to no longer set the '--name' option.
2022-02-23 10:47:07 -08:00
John Blum
0f3945a425 Remove use of temporary directories ('/tmp/geode/*') for bulid artifacts.
The 'gradle.user.home' JVM System property no longer seems valid in Gradle 7.x.
2022-02-23 10:47:07 -08:00
John Blum
a005407fba Add JVM --add-opens module options for Gradle execution when deploying docs.
Declaring open mnodules will hopefully address this problem in the Jenkins CI build:

10:41:50  > Task :spring-geode-docs:asciidoctor
10:41:50  2022-02-23T18:41:49.599Z [main] WARN FilenoUtil : Native subprocess control requires open access to the JDK IO subsystem
10:41:50  Pass '--add-opens java.base/sun.nio.ch=ALL-UNNAMED --add-opens java.base/java.io=ALL-UNNAMED' to enable.
2022-02-23 10:44:00 -08:00
John Blum
6ab57409b8 Refactor and simplify Spring Build Conventions Gradle Plugins.
* Declare CHECKSTYLE_VERSION class member constant in the CheckstylePlugin.
* Remove the PlublishLocalPlugin.
* Replace use of the deprecated JavaPluginConvention with JavaPluginExtension in the JavadocApiPlugin.
* Replace the EclipseWtpPlugin with the EclipsePlugin applied in the AbstractSpringJavaPlugin class.
* Review and fix spelling error in CopyPropertiesPlugin Javadoc.
* Review, refactor and polish the Spring Gradle PropDepsPlugins including PropDepsPlugins for IntelliJ IDEA and Eclipse.
2022-02-17 19:05:12 -08:00
John Blum
102928314c Add sub-project-specific directory (e.g. 'boot') under /tmp/geode directory on build machine. 2021-04-14 14:51:43 -07:00
John Blum
db6d6ec2c5 Fix syntax error in --no-build-cache option to the gradlew command in the ci/deployArtifact.sh Bash shell script. 2021-04-08 22:48:39 -07:00
John Blum
9404c0d6c0 Change log messages (echo) when deploying artifacts & docs. 2021-04-08 22:29:09 -07:00
John Blum
30b7c66f23 Name the Docker container forks for the deployment of artifacts & docs after the hostname.
Log (echo) the $HOSTNAME for the host running each deployment.
2021-04-08 22:08:07 -07:00
John Blum
d778ebe1c9 Remove (clean) the .gradle/ directory inside the build/checkout/working directory. 2021-04-08 20:54:54 -07:00
John Blum
ebe48bd62b Create and use different/separate Gradle caches (directory locations) for build, artifacts and docs phases/stages. 2021-04-08 15:06:03 -07:00
John Blum
11e8e7aa3b Login as 'root' when forking the Docker containers used to deploy artifacts & docs.
Reinstate the declaration of the 'user.name' Java System System Property set to 'jenkins' during the Build phase (check).

Execute chown command to change the owner of the SBDG build directory to 'jenkins' prior to deploying artifacts & docs.

Declare the 'user.name' (set to 'jenkins') and `java.io.tmpdir' (set to '/tmp') Java System Properties in Gradle Options prior to deploying artifacts & docs.
2021-04-08 13:21:27 -07:00
John Blum
56ca80ff73 Polish. 2021-04-07 21:02:44 -07:00
John Blum
fee8821d89 Disable the Gradle build-cache & configuration-cache when deploying artifacts.
Remove the unnecessary --refresh-dependencies option when deploying artifacts & docs.
2021-04-07 21:01:10 -07:00
John Blum
59b7f678b3 Set the 'java.io.tmpdir' Java System Property to '/tmp'. 2021-04-07 20:52:51 -07:00
John Blum
b2c1363d76 Move 'docker login' command to setup.sh.
Move 'chown' and and 'mkdir /tmp/jenkins-home' commmands to setup.sh.

Add 'exit 0' commands to the cleanup Bash shell scripts.

Add 'echo' commands to log build progress.
2021-04-07 20:49:27 -07:00
John Blum
01347ac4af Separate Jenkins CI build Pipeline Steps into individual Bash shell scripts. 2021-04-07 20:36:04 -07:00
John Blum
0ba6de396e Add doc on how to build locally.
"Think global, build local!"
2021-04-07 20:33:44 -07:00