-
Notifications
You must be signed in to change notification settings - Fork 14
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Add caching, tracing, logging, and batching to the plugin (#413)
- Loading branch information
1 parent
9df3422
commit e33b238
Showing
11 changed files
with
1,344 additions
and
766 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,9 @@ | ||
FROM jenkins/jenkins:lts-jdk17 | ||
|
||
# install the plugin from update center to get all dependencies | ||
RUN jenkins-plugin-cli --plugins junit-sql-storage configuration-as-code database-postgresql opentelemetry | ||
# override with locally built version | ||
COPY target/junit-sql-storage.hpi /usr/share/jenkins/ref/plugins/junit-sql-storage.jpi | ||
|
||
# configuration as code config for configuring this plugin | ||
COPY jenkins-config.yaml /usr/share/jenkins/ref/jenkins.yaml |
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 |
---|---|---|
@@ -0,0 +1,22 @@ | ||
#!/usr/bin/env bash | ||
|
||
LightGreen='\033[1;32m' | ||
Red='\033[0;31m' | ||
White='\033[97m' | ||
NC='\033[0m' | ||
|
||
echo "Building the Jenkins plugin..." | ||
echo -e "${LightGreen}mvn ${White}clean package -P quick-build${NC}" | ||
hpi_file="./target/junit-sql-storage.hpi" | ||
if ! mvn clean package -P quick-build || [ ! -e "$hpi_file" ]; then | ||
echo | ||
echo -e "${Red}Failed to build file ${NC}$hpi_file${Red} check the maven output${NC}" | ||
exit 1 | ||
fi | ||
echo | ||
echo -e "${LightGreen}docker compose up --build -d${NC}" | ||
docker compose up --build -d | ||
echo | ||
# Monitor the Jenkins logs | ||
echo -e "${LightGreen}docker compose logs -f jenkins${NC}" | ||
docker compose logs -f jenkins |
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
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
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,22 @@ | ||
unclassified: | ||
globalDatabaseConfiguration: | ||
database: | ||
postgreSQL: | ||
database: postgres | ||
hostname: db | ||
password: postgres | ||
username: postgres | ||
validationQuery: "SELECT 1" | ||
junitTestResultStorage: | ||
storage: "database" | ||
openTelemetry: | ||
authentication: "noAuthentication" | ||
disabledResourceProviders: "io.opentelemetry.instrumentation.resources.ProcessResourceProvider" | ||
endpoint: "http://jaeger:4317" | ||
exportOtelConfigurationAsEnvironmentVariables: false | ||
ignoredSteps: "dir,echo,isUnix,pwd,properties" | ||
observabilityBackends: | ||
- jaeger: | ||
jaegerBaseUrl: "http://localhost:16686/" | ||
serviceName: "jenkins" | ||
serviceNamespace: "jenkins" |
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
Oops, something went wrong.