Skip to content
This repository was archived by the owner on Oct 11, 2019. It is now read-only.

Commit 598cb18

Browse files
authored
Merge pull request #15 from keptn/new-jenkins
Build new Jenkins image 0.5.0
2 parents 949b7c7 + 5651cd4 commit 598cb18

File tree

10 files changed

+24
-10
lines changed

10 files changed

+24
-10
lines changed

README.md

+1
Original file line numberDiff line numberDiff line change
@@ -18,6 +18,7 @@ During the setup of the Jenkins, a secret is created that contains key-value pai
1818

1919
## Docker Jenkins
2020
The `docker-jenkins` folder contains a `Dockerfile` and all artifacts for building the Jenkins container image. Characteristics of this Jenkins image are:
21+
* **Performance Signature Plugin 3.1.1**
2122
* **Jenkins jobs**:
2223
* deploy
2324
* run_test

config/jenkins/k8s-jenkins-deployment.yml

+1-5
Original file line numberDiff line numberDiff line change
@@ -69,7 +69,7 @@ spec:
6969
spec:
7070
containers:
7171
- name: jenkins
72-
image: keptn/jenkins:0.4.1
72+
image: keptn/jenkins:0.5.0
7373
imagePullPolicy: Always
7474
env:
7575
- name: GITHUB_USER_EMAIL
@@ -78,10 +78,6 @@ spec:
7878
value: GITHUB_ORGANIZATION_PLACEHOLDER
7979
- name: DOCKER_REGISTRY_IP
8080
value: DOCKER_REGISTRY_IP_PLACEHOLDER
81-
- name: DT_TENANT_URL
82-
value: DT_TENANT_URL_PLACEHOLDER
83-
- name: DT_API_TOKEN
84-
value: DT_API_TOKEN_PLACEHOLDER
8581
ports:
8682
- containerPort: 8080
8783
- containerPort: 50000

docker-jenkins/Dockerfile

+4
Original file line numberDiff line numberDiff line change
@@ -80,6 +80,7 @@ RUN chmod +x /usr/local/bin/jenkins.sh
8080

8181
COPY /configs/jenkins_home_config.xml "$JENKINS_HOME"/config.xml
8282
COPY /configs/org.jenkinsci.plugins.workflow.libs.GlobalLibraries.xml "$JENKINS_HOME"/org.jenkinsci.plugins.workflow.libs.GlobalLibraries.xml
83+
COPY /configs/de.tsystems.mms.apm.performancesignature.dynatracesaas.DynatraceGlobalConfiguration.xml "$JENKINS_HOME"/de.tsystems.mms.apm.performancesignature.dynatracesaas.DynatraceGlobalConfiguration.xml
8384

8485
ADD /configs/jobs /tmp/jobs
8586
ADD /configs/users "$JENKINS_HOME"/users
@@ -97,6 +98,9 @@ credentials-binding:1.16 \
9798
git:3.9.1 \
9899
google-oauth-plugin:0.6 \
99100
google-source-plugin:0.3 \
101+
performance:3.12 \
102+
performance-signature-dynatracesaas:3.1.1 \
103+
performance-signature-ui:3.1.1 \
100104
github-branch-source:2.4.1
101105

102106
RUN cp -R /tmp/jobs/* "$JENKINS_HOME"/jobs/
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,12 @@
1+
<?xml version='1.1' encoding='UTF-8'?>
2+
<de.tsystems.mms.apm.performancesignature.dynatracesaas.DynatraceGlobalConfiguration plugin="[email protected]">
3+
<configurations>
4+
<de.tsystems.mms.apm.performancesignature.dynatracesaas.model.DynatraceServerConfiguration>
5+
<name>Dynatrace Tenant</name>
6+
<apiTokenId>perfsig-api-token</apiTokenId>
7+
<verifyCertificate>false</verifyCertificate>
8+
<useProxy>false</useProxy>
9+
<serverUrl>https://DT_TENANT_URL_PLACEHOLDER</serverUrl>
10+
</de.tsystems.mms.apm.performancesignature.dynatracesaas.model.DynatraceServerConfiguration>
11+
</configurations>
12+
</de.tsystems.mms.apm.performancesignature.dynatracesaas.DynatraceGlobalConfiguration>

docker-jenkins/configs/jobs/deploy/config.xml

+1-1
Original file line numberDiff line numberDiff line change
@@ -96,7 +96,7 @@
9696
</userRemoteConfigs>
9797
<branches>
9898
<hudson.plugins.git.BranchSpec>
99-
<name>*/release-0.1.x</name>
99+
<name>*/release-0.2.x</name>
100100
</hudson.plugins.git.BranchSpec>
101101
</branches>
102102
<doGenerateSubmoduleConfigurations>false</doGenerateSubmoduleConfigurations>

docker-jenkins/configs/jobs/evaluation_done/config.xml

+1-1
Original file line numberDiff line numberDiff line change
@@ -103,7 +103,7 @@
103103
</userRemoteConfigs>
104104
<branches>
105105
<hudson.plugins.git.BranchSpec>
106-
<name>*/release-0.1.x</name>
106+
<name>*/release-0.2.x</name>
107107
</hudson.plugins.git.BranchSpec>
108108
</branches>
109109
<doGenerateSubmoduleConfigurations>false</doGenerateSubmoduleConfigurations>

docker-jenkins/configs/jobs/run_tests/config.xml

+1-1
Original file line numberDiff line numberDiff line change
@@ -102,7 +102,7 @@
102102
</userRemoteConfigs>
103103
<branches>
104104
<hudson.plugins.git.BranchSpec>
105-
<name>*/release-0.1.x</name>
105+
<name>*/release-0.2.x</name>
106106
</hudson.plugins.git.BranchSpec>
107107
</branches>
108108
<doGenerateSubmoduleConfigurations>false</doGenerateSubmoduleConfigurations>

docker-jenkins/jenkins.sh

+1
Original file line numberDiff line numberDiff line change
@@ -9,6 +9,7 @@ find /usr/share/jenkins/ref/ \( -type f -o -type l \) -exec bash -c '. /usr/loca
99
sed -i 's/DOCKER_REGISTRY_URL_PLACEHOLDER/'"$DOCKER_REGISTRY_IP"'/' $JENKINS_HOME/config.xml
1010
sed -i 's/GITHUB_USER_EMAIL_PLACEHOLDER/'"$GITHUB_USER_EMAIL"'/' $JENKINS_HOME/config.xml
1111
sed -i 's/GITHUB_ORGANIZATION_PLACEHOLDER/'"$GITHUB_ORGANIZATION"'/' $JENKINS_HOME/config.xml
12+
sed -i 's~DT_TENANT_URL_PLACEHOLDER~'"$DT_TENANT_URL"'~' $JENKINS_HOME/de.tsystems.mms.apm.performancesignature.dynatracesaas.DynatraceGlobalConfiguration.xml
1213

1314
# if `docker run` first argument start with `--` the user is passing jenkins launcher arguments
1415
if [[ $# -lt 1 ]] || [[ "$1" == "--"* ]]; then

docker-jenkins/version

+1-1
Original file line numberDiff line numberDiff line change
@@ -1 +1 @@
1-
0.4.1
1+
0.5.0

releasenotes/releasenotes_V0.2.0.md

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,11 +1,11 @@
11
# Release Notes 0.2.0
22

33
## New Features
4+
- new Jenkins image: keptn/jenkins:0.5.0
45

56
## Fixed Issues
67
- Jenkins URL removed from Jenkins configuration
78
- Dynatrace-related environment variables removed from Jenkins configuration
8-
- Performance signature plugin removed from Jenkins [#297](https://github.com/keptn/keptn/issues/297)
99
- Hardening the deploy script to check each installation step [#250](https://github.com/keptn/keptn/issues/250)
1010
- Hardening the deploy pipeline to check whether the DT_TENANT_URL is set. Besides, DT deploy event contains additional meta-information [#268](https://github.com/keptn/keptn/issues/268).
1111

0 commit comments

Comments
 (0)