Skip to content

Commit e0ded1a

Browse files
authored
Release branch update for v4.3.0 (#1241)
1 parent c637f21 commit e0ded1a

File tree

26 files changed

+194
-164
lines changed

26 files changed

+194
-164
lines changed

.github/dependabot.yml

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,10 @@
1+
# Set update schedule for GitHub Actions
2+
3+
version: 2
4+
updates:
5+
6+
- package-ecosystem: "github-actions"
7+
directory: "/"
8+
schedule:
9+
# Check for updates to GitHub Actions every week
10+
interval: "weekly"

.github/workflows/changelog-enforcer.yml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -8,8 +8,8 @@ jobs:
88
changelog:
99
runs-on: ubuntu-latest
1010
steps:
11-
- uses: actions/checkout@v2
12-
- uses: dangoslen/changelog-enforcer@v2
11+
- uses: actions/checkout@v3.5.3
12+
- uses: dangoslen/changelog-enforcer@v3
1313
with:
1414
changeLogPath: 'CHANGELOG.md'
1515
skipLabels: 'skip changelog'

.github/workflows/codeql-analysis.yml

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,8 @@ name: "Code scanning - action"
22

33
on:
44
push:
5+
branches-ignore:
6+
- "dependabot/**"
57
pull_request:
68
schedule:
79
- cron: '0 15 * * 3'
@@ -13,7 +15,7 @@ jobs:
1315

1416
steps:
1517
- name: Checkout repository
16-
uses: actions/checkout@v2
18+
uses: actions/checkout@v3.5.3
1719
with:
1820
# We must fetch at least the immediate parents so that if this is
1921
# a pull request then we can checkout the head.

.github/workflows/continuous-integration-workflow.yml

Lines changed: 15 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,7 @@ jobs:
1212
steps:
1313
-
1414
name: Checkout repository
15-
uses: actions/checkout@v2.0.0
15+
uses: actions/checkout@v3.5.3
1616
-
1717
name: Build UBI8 docker image
1818
run: |
@@ -27,7 +27,7 @@ jobs:
2727
steps:
2828
-
2929
name: Checkout repository
30-
uses: actions/checkout@v2.0.0
30+
uses: actions/checkout@v3.5.3
3131
- name: Build UBI8 docker image
3232
run: |
3333
./.github/workflows/build-docker-image.sh \
@@ -56,7 +56,7 @@ jobs:
5656
steps:
5757
-
5858
name: Checkout repository
59-
uses: actions/checkout@v2.0.0
59+
uses: actions/checkout@v3.5.3
6060
-
6161
name: Check shell scripts
6262
run: |
@@ -72,7 +72,7 @@ jobs:
7272
steps:
7373
-
7474
name: Checkout repository
75-
uses: actions/checkout@v2.0.0
75+
uses: actions/checkout@v3.5.3
7676
-
7777
name: Check shell scripts
7878
run: |
@@ -88,10 +88,10 @@ jobs:
8888
steps:
8989
-
9090
name: Checkout repository
91-
uses: actions/checkout@v3
91+
uses: actions/checkout@v3.5.3
9292
-
9393
name: Setup Go 1.18
94-
uses: actions/setup-go@v3
94+
uses: actions/setup-go@v4
9595
with:
9696
go-version: 1.18
9797
-
@@ -128,7 +128,7 @@ jobs:
128128
steps:
129129
-
130130
name: Checkout repository
131-
uses: actions/checkout@v2.0.0
131+
uses: actions/checkout@v3.5.3
132132
-
133133
name: Check shell scripts
134134
run: |
@@ -145,7 +145,7 @@ jobs:
145145
steps:
146146
-
147147
name: Checkout repository
148-
uses: actions/checkout@v2.0.0
148+
uses: actions/checkout@v3.5.3
149149
-
150150
name: Check jsl expectations
151151
run: |
@@ -163,7 +163,12 @@ jobs:
163163
steps:
164164
-
165165
name: Checkout repository
166-
uses: actions/checkout@v3
166+
uses: actions/checkout@v3.5.3
167+
-
168+
name: Setup Go 1.18
169+
uses: actions/setup-go@v4
170+
with:
171+
go-version: 1.18
167172
-
168173
name: Verify all Go files are formatted with gofmt
169174
working-directory: tests
@@ -202,7 +207,7 @@ jobs:
202207
# run: jq . <<< "${GITHUB_CONTEXT}"
203208
# -
204209
# name: Checkout repository
205-
# uses: actions/checkout@v2.0.0
210+
# uses: actions/checkout@v3.5.3
206211
# with:
207212
# fetch-depth: 0
208213
# path: 'ods-core'

CHANGELOG.md

Lines changed: 18 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,23 @@
22

33
## Unreleased
44

5+
## [4.3.0] - 2023-07-03
6+
7+
### Added
8+
- Added webhook proxy feature to check for Jenkins availability ([#1221](https://github.com/opendevstack/ods-core/issues/1221))
9+
- Add SonarQube Rust plugin ([#1220](https://github.com/opendevstack/ods-core/issues/1220))
10+
- Added Trivy into jenkins agent base ([#1236](https://github.com/opendevstack/ods-core/issues/1236))
11+
12+
### Changed
13+
- Jenkins maintenance, set durability to max performance and remove legacy plugin ([#1225](https://github.com/opendevstack/ods-core/pull/1225))
14+
- Jenkins maintenance, Update resources for deployment for optimal usage ([#1224](https://github.com/opendevstack/ods-core/issues/1224))
15+
- Jenkins maintenance, Update jenkins base image, plugins, git-lfs, aquacli ([#1224](https://github.com/opendevstack/ods-core/issues/1224))
16+
- Bump helm-diff plugin version ([#1226](https://github.com/opendevstack/ods-core/issues/1226))
17+
- Bump helm-diff plugin version to 3.8.1 ([#1239](https://github.com/opendevstack/ods-core/pull/1239))
18+
19+
### Fixed
20+
- Memory malloc arena fix for Jenkins ([#1217](https://github.com/opendevstack/ods-core/pull/1217))
21+
522
## [4.2.0] - 2023-02-21
623

724
- Maintenance, update nexus to version 3.45.1 ([#1201](https://github.com/opendevstack/ods-core/pull/1201))
@@ -36,7 +53,7 @@
3653
- Add plugins necessary to upgrade to 4.9 base image in the list of managed plugins ([#1121](https://github.com/opendevstack/ods-core/pull/1121))
3754
- Upgraded atlassian suite to 8.20.6 and added functionality to upgrade without reinstalling all the box.
3855
- Upgrades needed by Github and Jenkins pipelines to work again. Includes some pipeline modifications to detect errors early.
39-
- Upgrades atlassian suite ([#1138](https://github.com/opendevstack/ods-core/issues/1138))
56+
- Upgrades atlassian suite ([#1138](https://github.com/opendevstack/ods-core/issues/1138))
4057
- deploy.sh checks that services started are up and ensures resolv.conf is updated if service ip changes ([#1152](https://github.com/opendevstack/ods-core/pull/1152))
4158
- Remove Jcenter from Nexus ([#804](https://github.com/opendevstack/ods-quickstarters/issues/804))
4259
- Needed changes to run CI again, ported from task/upgrade-atlassian-stack. Run quickstarters in parallel, typos.

configuration-sample/ods-core.env.sample

Lines changed: 6 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -185,13 +185,13 @@ CONFLUENCE_URL=http://192.168.56.31:8090
185185
# For UBI8-based images (OpenShift 4):
186186
# - RHEL variant: https://catalog.redhat.com/software/containers/openshift4/ose-jenkins/5cdd918ad70cc57c44b2d279
187187
# - Example: registry.redhat.io/openshift4/ose-jenkins:v4.6
188+
# - Last tested: registry.redhat.io/openshift4/ose-jenkins:v4.10.0-202305170515.p0.g2988625.assembly.stream
188189
# - Community variant: https://quay.io/repository/openshift/origin-jenkins?tab=tags
189190
# - Example: quay.io/openshift/origin-jenkins:4.6
190191
# For RHEL7-based images (OpenShift 3.11):
191192
# - Available tags listed at: https://catalog.redhat.com/software/containers/openshift3/jenkins-2-rhel7/581d2f4500e5d05639b6517b
192193
# - Example: registry.access.redhat.com/openshift3/jenkins-2-rhel7:v3.11
193-
# - Latest tested tag: v3.11.248 (v3.11 is a moving target)
194-
JENKINS_MASTER_BASE_FROM_IMAGE=registry.access.redhat.com/openshift3/jenkins-2-rhel7:v3.11
194+
JENKINS_MASTER_BASE_FROM_IMAGE=registry.redhat.io/openshift4/ose-jenkins:v4.10.0-202305170515.p0.g2988625.assembly.stream
195195

196196
# Dockerfile to use for Jenkins master.
197197
# Use "Dockerfile.ubi8" for both OpenShift 3.11 and 4 (UBI8 base image)
@@ -201,13 +201,14 @@ JENKINS_MASTER_DOCKERFILE_PATH=Dockerfile.ubi8
201201
# For UBI8-based images (OpenShift 4):
202202
# - RHEL variant: https://catalog.redhat.com/software/containers/openshift4/ose-jenkins-agent-base/5cdd8e2fbed8bd5717d66e77
203203
# - Example: registry.redhat.io/openshift4/ose-jenkins-agent-base:v4.6
204+
# - Last tested: registry.redhat.io/openshift4/ose-jenkins:v4.10.0-202305170515.p0.g2988625.assembly.stream
204205
# - Community variant: https://quay.io/repository/openshift/origin-jenkins-agent-base?tab=tags
205206
# - Example: quay.io/openshift/origin-jenkins-agent-base:4.6
206207
# For RHEL7-based images (OpenShift 3.11):
207208
# - Available tags listed at: https://catalog.redhat.com/software/containers/openshift3/jenkins-slave-base-rhel7/581d2f3f00e5d05639b6515b.
208209
# - Example: registry.access.redhat.com/openshift3/jenkins-slave-base-rhel7:v3.11
209210
# - Latest tested tag: v3.11.248 (v3.11 is a moving target)
210-
JENKINS_AGENT_BASE_FROM_IMAGE=registry.access.redhat.com/openshift3/jenkins-slave-base-rhel7:v3.11
211+
JENKINS_AGENT_BASE_FROM_IMAGE=registry.redhat.io/openshift4/ose-jenkins:v4.10.0-202305170515.p0.g2988625.assembly.stream
211212

212213
# Dockerfile to use for Jenkins agents.
213214
# Use "Dockerfile.ubi8" for both OpenShift 3.11 and 4 (UBI8 base image)
@@ -224,8 +225,8 @@ JENKINS_AGENT_BASE_SNYK_DISTRIBUTION_URL=https://github.com/snyk/snyk/releases/d
224225
# Releases are published at https://download.aquasec.com/scanner
225226
# Check Aqua versions backward compatibility at https://docs.aquasec.com/docs/version-compatibility-of-components#section-backward-compatibility-across-two-major-versions
226227
# To Download the aquaSec scanner cli and check their documentaion requires a valid account on aquasec.com
227-
# Latest tested version is 2022.4.98
228-
# Example: https://<USER>:<PASSWORD>@download.aquasec.com/scanner/2022.4.98/scannercli
228+
# Latest tested version is 2022.4.284
229+
# Example: https://<USER>:<PASSWORD>@download.aquasec.com/scanner/2022.4.284/scannercli
229230
JENKINS_AGENT_BASE_AQUASEC_SCANNERCLI_URL=
230231

231232
# Repository of shared library

docs/modules/jenkins/pages/agent-base.adoc

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -12,6 +12,7 @@ The base image contains the following customizations:
1212
* https://github.com/containers/skopeo[Skopeo]
1313
* https://snyk.io[Snyk] - used to scan and monitor projects vulnerable third-party dependencies (only installed if `SNYK_DISTRIBUTION_URL` is configured)
1414
* https://aquasec.com[Aqua Scanner CLI] - used to scan local images and interact with the Aqua Server (only installed if `AQUASEC_SCANNERCLI_URL` is configured)
15+
* https://trivy.dev[Trivy Scanner] - used to scan filesystem and generate “software bill of materials” https://cyclonedx.org/capabilities/sbom[SBOM] report
1516
* Setting of enterprise proxy (based on `HTTP_PROXY` presence)
1617
* Support for custom certificates (based on `APP_DNS` presence)
1718

jenkins/agent-base/Dockerfile.ubi8

Lines changed: 10 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -6,10 +6,11 @@ ENV SONAR_SCANNER_VERSION=4.7.0.2747 \
66
CNES_REPORT_VERSION=4.1.2 \
77
TAILOR_VERSION=1.3.4 \
88
SOPS_VERSION=3.7.3 \
9-
HELM_VERSION=3.11.0 \
10-
HELM_PLUGIN_DIFF_VERSION=3.6.0 \
9+
HELM_VERSION=3.11.3 \
10+
HELM_PLUGIN_DIFF_VERSION=3.8.1 \
1111
HELM_PLUGIN_SECRETS_VERSION=4.2.2 \
12-
GIT_LFS_VERSION=2.6.1 \
12+
GIT_LFS_VERSION=3.3.0 \
13+
TRIVY_VERSION=0.42.0 \
1314
JAVA_GC_OPTS="-XX:+UseParallelGC -XX:MinHeapFreeRatio=5 -XX:MaxHeapFreeRatio=10 -XX:GCTimeRatio=4 -XX:AdaptiveSizePolicyWeight=90"
1415

1516
ARG APP_DNS
@@ -88,7 +89,7 @@ RUN cd /tmp \
8889
&& mkdir -p /tmp/git-lfs \
8990
&& curl -sSLO https://github.com/git-lfs/git-lfs/releases/download/v${GIT_LFS_VERSION}/git-lfs-linux-amd64-v${GIT_LFS_VERSION}.tar.gz \
9091
&& tar -zxvf git-lfs-linux-amd64-v${GIT_LFS_VERSION}.tar.gz -C /tmp/git-lfs \
91-
&& bash /tmp/git-lfs/install.sh \
92+
&& bash /tmp/git-lfs/git-lfs-${GIT_LFS_VERSION}/install.sh \
9293
&& git lfs version \
9394
&& rm -rf /tmp/git-lfs*
9495

@@ -114,6 +115,11 @@ RUN if [ -z $AQUASEC_SCANNERCLI_URL ] ; then echo 'Skipping AquaSec installation
114115
&& echo 'AquaSec installation completed!'; \
115116
fi
116117

118+
# Install Trivy.
119+
RUN curl -sfL https://raw.githubusercontent.com/aquasecurity/trivy/main/contrib/install.sh | sh -s -- -b /usr/local/bin v$TRIVY_VERSION \
120+
&& echo 'Trivy CLI version:' \
121+
&& trivy version
122+
117123
# Set java proxy var.
118124
COPY set_java_proxy.sh /tmp/set_java_proxy.sh
119125
RUN . /tmp/set_java_proxy.sh && echo $JAVA_OPTS

jenkins/master/Dockerfile.ubi8

Lines changed: 5 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -10,6 +10,7 @@ ARG SONAR_EDITION
1010
ARG SONAR_VERSION
1111
ARG APP_DNS
1212
ENV TAILOR_VERSION=1.3.4
13+
ENV JENKINS_JAVA_OVERRIDES="-Dhudson.tasks.MailSender.SEND_TO_UNKNOWN_USERS=true -Dhudson.tasks.MailSender.SEND_TO_USERS_WITHOUT_READ=true"
1314

1415
USER root
1516

@@ -38,9 +39,10 @@ RUN chown :0 /etc/pki/java/cacerts && chmod ugo+w /etc/pki/java/cacerts
3839
RUN cd /tmp \
3940
&& curl -LOv https://github.com/opendevstack/tailor/releases/download/v${TAILOR_VERSION}/tailor-linux-amd64 \
4041
&& mv tailor-linux-amd64 /usr/local/bin/tailor \
41-
&& chmod a+x /usr/local/bin/tailor
42+
&& chmod a+x /usr/local/bin/tailor \
43+
&& tailor version
4244

4345
USER jenkins
4446

45-
ENV JENKINS_JAVA_OVERRIDES="-Dhudson.tasks.MailSender.SEND_TO_UNKNOWN_USERS=true -Dhudson.tasks.MailSender.SEND_TO_USERS_WITHOUT_READ=true"
46-
RUN tailor version
47+
48+

jenkins/master/configuration/init.groovy.d/flow-durability-hint.groovy

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@ import jenkins.model.Jenkins;
22
import org.jenkinsci.plugins.workflow.flow.*;
33

44
// See comments in https://github.com/opendevstack/ods-core/pull/1161
5-
FlowDurabilityHint fdh = FlowDurabilityHint.SURVIVABLE_NONATOMIC;
5+
FlowDurabilityHint fdh = FlowDurabilityHint.PERFORMANCE_OPTIMIZED;
66

77
println("\nAvailable values: ")
88
for (FlowDurabilityHint maybeHint : FlowDurabilityHint.values()) {

0 commit comments

Comments
 (0)