Skip to content

Commit c410291

Browse files
authored
release 4.4.0 (#1274)
1 parent bc21133 commit c410291

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

73 files changed

+1257
-1084
lines changed

.github/workflows/changelog-enforcer.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@ jobs:
88
changelog:
99
runs-on: ubuntu-latest
1010
steps:
11-
- uses: actions/checkout@v4.1.1
11+
- uses: actions/checkout@v4.1.2
1212
- uses: dangoslen/changelog-enforcer@v3
1313
with:
1414
changeLogPath: 'CHANGELOG.md'

.github/workflows/codeql-analysis.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,7 @@ jobs:
1515

1616
steps:
1717
- name: Checkout repository
18-
uses: actions/checkout@v4.1.1
18+
uses: actions/checkout@v4.1.2
1919
with:
2020
# We must fetch at least the immediate parents so that if this is
2121
# a pull request then we can checkout the head.

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

Lines changed: 10 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@v4.1.1
15+
uses: actions/checkout@v4.1.2
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@v4.1.1
30+
uses: actions/checkout@v4.1.2
3131
- name: Build UBI8 docker image
3232
run: |
3333
./.github/workflows/build-docker-image.sh \
@@ -51,12 +51,12 @@ jobs:
5151
runs-on: ubuntu-22.04
5252
strategy:
5353
matrix:
54-
version: ['8.9.10.61524'] # 8.9 = LTS
54+
version: ['9.9.4'] # 9.9 = LTS
5555
edition: ['community', 'developer', 'enterprise']
5656
steps:
5757
-
5858
name: Checkout repository
59-
uses: actions/checkout@v4.1.1
59+
uses: actions/checkout@v4.1.2
6060
-
6161
name: Check shell scripts
6262
run: |
@@ -72,7 +72,7 @@ jobs:
7272
steps:
7373
-
7474
name: Checkout repository
75-
uses: actions/checkout@v4.1.1
75+
uses: actions/checkout@v4.1.2
7676
-
7777
name: Check shell scripts
7878
run: |
@@ -88,7 +88,7 @@ jobs:
8888
steps:
8989
-
9090
name: Checkout repository
91-
uses: actions/checkout@v4.1.1
91+
uses: actions/checkout@v4.1.2
9292
-
9393
name: Setup Go 1.18
9494
uses: actions/setup-go@v5
@@ -128,7 +128,7 @@ jobs:
128128
steps:
129129
-
130130
name: Checkout repository
131-
uses: actions/checkout@v4.1.1
131+
uses: actions/checkout@v4.1.2
132132
-
133133
name: Check shell scripts
134134
run: |
@@ -145,7 +145,7 @@ jobs:
145145
steps:
146146
-
147147
name: Checkout repository
148-
uses: actions/checkout@v4.1.1
148+
uses: actions/checkout@v4.1.2
149149
-
150150
name: Check jsl expectations
151151
run: |
@@ -163,7 +163,7 @@ jobs:
163163
steps:
164164
-
165165
name: Checkout repository
166-
uses: actions/checkout@v4.1.1
166+
uses: actions/checkout@v4.1.2
167167
-
168168
name: Setup Go 1.18
169169
uses: actions/setup-go@v5
@@ -207,7 +207,7 @@ jobs:
207207
# run: jq . <<< "${GITHUB_CONTEXT}"
208208
# -
209209
# name: Checkout repository
210-
# uses: actions/checkout@v4.1.1
210+
# uses: actions/checkout@v4.1.2
211211
# with:
212212
# fetch-depth: 0
213213
# path: 'ods-core'

CHANGELOG.md

Lines changed: 16 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,22 @@
22

33
## Unreleased
44

5+
### Fixed
6+
7+
### Added
8+
9+
### Changed
10+
11+
## [4.4.0] - 2024-04-22
12+
13+
### Fixed
14+
- Update Nexus to version 3.67.1-java11 for Critical Bug Fix ([#1271](https://github.com/opendevstack/ods-core/pull/1271))
15+
16+
### Changed
17+
- Nexus Maintenance (update version to latest, helm migration) ([#1242](https://github.com/opendevstack/ods-core/issues/1242))
18+
- Update api version in ocp templates for image, buildconfig, route and deploymentconfig ([#1072](https://github.com/opendevstack/ods-jenkins-shared-library/issues/1072))
19+
- SonarQube Maintenance (LTS update, DB update, SAML setup) ([#1211](https://github.com/opendevstack/ods-core/issues/1211))
20+
- Update Jenkins and plugins to version v2.426.3, update agent and packages. Switch base image from "registry.redhat.io/openshift4/ose" to "registry.redhat.io/ocp-tools-4" [#1270](https://github.com/opendevstack/ods-core/pull/1270)
521

622
## [4.3.1] - 2024-02-19
723

Makefile

Lines changed: 19 additions & 28 deletions
Original file line numberDiff line numberDiff line change
@@ -4,9 +4,10 @@ SHELL = /bin/bash
44
MAKEFLAGS += --warn-undefined-variables
55
MAKEFLAGS += --no-builtin-rules
66

7-
ODS_NAMESPACE := $(shell $(CURDIR)/scripts/get-config-param.sh ODS_NAMESPACE)
8-
NEXUS_URL := $(shell $(CURDIR)/scripts/get-config-param.sh NEXUS_URL)
9-
SONARQUBE_URL := $(shell $(CURDIR)/scripts/get-config-param.sh SONARQUBE_URL)
7+
# Load environment variables from .env file
8+
include ../ods-configuration/ods-core.env
9+
export $(shell sed 's/=.*//' ../ods-configuration/ods-core.env)
10+
1011
INSECURE := false
1112
INSECURE_FLAG :=
1213
ifeq ($(INSECURE), $(filter $(INSECURE), true yes))
@@ -120,24 +121,19 @@ start-doc-gen-build:
120121

121122
# SONARQUBE
122123
## Install or update SonarQube.
123-
install-sonarqube: apply-sonarqube-build start-sonarqube-build apply-sonarqube-deploy configure-sonarqube
124+
install-sonarqube: apply-sonarqube-chart start-sonarqube-build configure-sonarqube
124125
.PHONY: install-sonarqube
125126

126-
## Update OpenShift resources related to the SonarQube image.
127-
apply-sonarqube-build:
128-
cd sonarqube/ocp-config && tailor apply --namespace $(ODS_NAMESPACE) bc,is
127+
## Apply OpenShift resources related to the SonarQube.
128+
apply-sonarqube-chart:
129+
cd sonarqube/chart && envsubst < values.yaml.template > values.yaml && helm upgrade --install --namespace $(ODS_NAMESPACE) sonarqube . && rm values.yaml
129130
.PHONY: apply-sonarqube-build
130131

131132
## Start build of BuildConfig "sonarqube".
132133
start-sonarqube-build:
133134
ocp-scripts/start-and-follow-build.sh --namespace $(ODS_NAMESPACE) --build-config sonarqube
134-
.PHONY: start-sonarqube-build
135-
136-
## Update OpenShift resources related to the SonarQube service.
137-
apply-sonarqube-deploy:
138-
cd sonarqube/ocp-config && tailor apply --namespace $(ODS_NAMESPACE) --exclude bc,is
139135
@echo "Visit $(SONARQUBE_URL)/setup to see if any update actions need to be taken."
140-
.PHONY: apply-sonarqube-deploy
136+
.PHONY: start-sonarqube-build
141137

142138
## Configure SonarQube service.
143139
configure-sonarqube:
@@ -147,27 +143,22 @@ configure-sonarqube:
147143

148144
# NEXUS
149145
## Install or update Nexus.
150-
install-nexus: apply-nexus-build start-nexus-build apply-nexus-deploy
146+
install-nexus: apply-nexus-chart start-nexus-build
151147
.PHONY: nexus
152148

153-
## Update OpenShift resources related to the Nexus image.
154-
apply-nexus-build:
155-
cd nexus/ocp-config && tailor apply --namespace $(ODS_NAMESPACE) bc,is
156-
.PHONY: apply-nexus-build
149+
## Apply OpenShift resources related to the Nexus.
150+
apply-nexus-chart:
151+
cd nexus/chart && envsubst < values.yaml.template > values.yaml && helm upgrade --install --namespace $(ODS_NAMESPACE) nexus . && rm values.yaml
152+
.PHONY: apply-nexus-chart
157153

158154
## Start build of BuildConfig "nexus".
159155
start-nexus-build:
160156
ocp-scripts/start-and-follow-build.sh --namespace $(ODS_NAMESPACE) --build-config nexus
161157
.PHONY: start-nexus-build
162158

163-
## Update OpenShift resources related to the Nexus service.
164-
apply-nexus-deploy:
165-
cd nexus/ocp-config && tailor apply --namespace $(ODS_NAMESPACE) --exclude bc,is
166-
.PHONY: apply-nexus-deploy
167-
168159
## Configure Nexus service.
169160
configure-nexus:
170-
cd nexus && ./configure.sh --namespace $(ODS_NAMESPACE) --nexus=$(NEXUS_URL) $(INSECURE_FLAG)
161+
cd nexus && ./configure.sh --namespace $(ODS_NAMESPACE) --nexus=$(NEXUS_URL) --admin-password=$(NEXUS_ADMIN_PASSWORD) $(INSECURE_FLAG)
171162
.PHONY: configure-nexus
172163
### configure-nexus is not part of install-nexus because it is not idempotent yet.
173164

@@ -177,14 +168,14 @@ configure-nexus:
177168
backup: backup-sonarqube backup-ocp-config
178169
.PHONY: backup
179170

180-
## Create a backup of OpenShift resources in "cd" namespace.
171+
## Create a backup of OpenShift resources in "ods" namespace.
181172
backup-ocp-config:
182-
tailor export --namespace $(ODS_NAMESPACE) > backup_cd.yml
173+
tailor export --namespace $(ODS_NAMESPACE) > backup_ods.yml
183174
.PHONY: backup-ocp-config
184175

185-
## Create a backup of the SonarQube database in the current directory.
176+
## Create a backup of the SonarQube database in backup storage and in the current directory.
186177
backup-sonarqube:
187-
cd sonarqube && ./backup.sh --namespace $(ODS_NAMESPACE) --backup-dir `pwd`
178+
cd sonarqube && ./backup.sh --namespace $(ODS_NAMESPACE) --local-copy=true --backup-dir `pwd`
188179
.PHONY: backup-sonarqube
189180

190181

configuration-sample/ods-core.env.sample

Lines changed: 39 additions & 44 deletions
Original file line numberDiff line numberDiff line change
@@ -43,8 +43,10 @@ ODS_BITBUCKET_PROJECT=opendevstack
4343
#########
4444

4545
# Nexus base image
46-
# See https://hub.docker.com/r/sonatype/nexus3/tags.
47-
NEXUS_FROM_IMAGE=sonatype/nexus3:3.45.1
46+
# See Dockerhub https://hub.docker.com/r/sonatype/nexus3/tags.
47+
# Officially supported is:
48+
# - 3.67.1-java11
49+
NEXUS_IMAGE_TAG=3.67.1-java11
4850

4951
# Nexus host without protocol.
5052
# The domain should be equal to OPENSHIFT_APPS_BASEDOMAIN (see below).
@@ -58,11 +60,16 @@ NEXUS_URL=https://nexus-cd.192.168.56.101.nip.io
5860
NEXUS_USERNAME=developer
5961
NEXUS_PASSWORD=changeme
6062
NEXUS_PASSWORD_B64=changeme
63+
# Password of Nexus administrator - should be set to a secure password
64+
# of your choice.
65+
NEXUS_ADMIN_PASSWORD=changeme
66+
NEXUS_ADMIN_PASSWORD_B64=changeme
6167
# Nexus (basic) authentication username:password
6268
NEXUS_AUTH=developer:changeme
6369

64-
# All params defined in the template https://github.com/opendevstack/ods-core/blob/master/nexus/ocp-config/bc.yml
65-
# can be overwritten by specifying the param in this file.
70+
# Nexus JVM parameters, adjust acording to organization size
71+
# See https://help.sonatype.com/en/sonatype-nexus-repository-system-requirements.html
72+
NEXUS_JVM_PARAMS="-Xms2703m -Xmx2703m -XX:MaxDirectMemorySize=2703m -Djava.util.prefs.userRoot=/nexus-data/javaprefs"
6673

6774
#############
6875
# SonarQube #
@@ -85,16 +92,21 @@ SONAR_ADMIN_PASSWORD_B64=changeme
8592
# Do not change the value manually - the token is created and set automatically during "make configure-sonarqube".
8693
SONAR_AUTH_TOKEN_B64=changeme
8794

88-
# Application in Crowd used for authentication
89-
SONAR_CROWD_APPLICATION=sonarqube
90-
SONAR_CROWD_PASSWORD_B64=changeme
95+
# Toggle authentication via SAML
96+
SONAR_AUTH_SAML='true'
97+
98+
# SAML Application used for authentication
99+
SONAR_SAML_APPLICATION_ID=https://sonarqube-cd.192.168.56.101.nip.io/sonar/saml
100+
SONAR_SAML_PROVIDER_ID_B64=changeme
101+
SONAR_SAML_LOGIN_URL_B64=changeme
102+
SONAR_SAML_CERTIFICATE_B64=changeme
91103

92104
# Postgres DB for SonarQube
93105
# Image to use for the PostgreSQL database. This needs to be compatible with
94106
# your SonarQube version, see https://docs.sonarqube.org/latest/requirements/requirements/.
95107
# Take care when upgrading either database or SQ version.
96-
# E.g. registry.redhat.io/rhel8/postgresql-12
97-
SONAR_DATABASE_IMAGE=docker-registry.default.svc:5000/openshift/postgresql:9.6
108+
# E.g. registry.redhat.io/rhel9/postgresql-15
109+
SONAR_DATABASE_IMAGE=docker-registry.default.svc:5000/openshift/postgresql:15
98110
# Connection string for JDBC. Typically this does not need to be changed.
99111
SONAR_DATABASE_JDBC_URL=jdbc:postgresql://sonarqube-postgresql:5432/sonarqube
100112
# Database name for SonarQube. Typically this does not need to be changed.
@@ -110,20 +122,10 @@ SONAR_DATABASE_USER=sonarqube
110122
# - Use "developer", "enterprise" or "datacenter" for commercial editions
111123
SONAR_EDITION=community
112124
# SonarQube version.
125+
# See Dockerhub https://hub.docker.com/_/sonarqube/tags
113126
# Officially supported is:
114-
# - 8.9 (LTS release)
115-
SONAR_VERSION=8.9.10.61524
116-
https://binaries.sonarsource.com/Distribution/sonarqube/sonarqube-8.9.10.61524.zip
117-
# SonarQube distribution URL.
118-
# Must be aligned with both SONAR_VERSION and SONAR_EDITION.
119-
# Check https://binaries.sonarsource.com/ for options.
120-
SONAR_DISTRIBUTION_URL=https://binaries.sonarsource.com/Distribution/sonarqube/sonarqube-8.9.10.61524.zip
121-
122-
# Toggle authentication via Crowd plugin
123-
SONAR_AUTH_CROWD=true
124-
125-
# All params defined in the template https://github.com/opendevstack/ods-core/blob/master/sonarqube/ocp-config/sonarqube.yml
126-
# can be overwritten by specifying the param in this file.
127+
# - 9.9 (LTS release)
128+
SONAR_VERSION=9.9.4
127129

128130
#########
129131
# Jira #
@@ -183,32 +185,25 @@ CONFLUENCE_URL=http://192.168.56.31:8090
183185

184186
# Base image for Jenkins master.
185187
# For UBI8-based images (OpenShift 4):
186-
# - RHEL variant: https://catalog.redhat.com/software/containers/openshift4/ose-jenkins/5cdd918ad70cc57c44b2d279
187-
# - 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
188+
# - RHEL variant: https://catalog.redhat.com/software/containers/ocp-tools-4/jenkins-rhel8/5fe1f38288e9c2f788526306
189+
# - Example: registry.redhat.io/ocp-tools-4/jenkins-rhel8:v4.14.0
190+
# - Last tested: registry.redhat.io/ocp-tools-4/jenkins-rhel8:v4.14.0-1706517686
189191
# - Community variant: https://quay.io/repository/openshift/origin-jenkins?tab=tags
190192
# - Example: quay.io/openshift/origin-jenkins:4.6
191-
# For RHEL7-based images (OpenShift 3.11):
192-
# - Available tags listed at: https://catalog.redhat.com/software/containers/openshift3/jenkins-2-rhel7/581d2f4500e5d05639b6517b
193-
# - Example: 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
193+
JENKINS_MASTER_BASE_FROM_IMAGE=registry.redhat.io/ocp-tools-4/jenkins-rhel8:v4.14.0-1706517686
195194

196195
# Dockerfile to use for Jenkins master.
197196
# Use "Dockerfile.ubi8" for both OpenShift 3.11 and 4 (UBI8 base image)
198197
JENKINS_MASTER_DOCKERFILE_PATH=Dockerfile.ubi8
199198

200199
# Base image for Jenkins agent base.
201200
# For UBI8-based images (OpenShift 4):
202-
# - RHEL variant: https://catalog.redhat.com/software/containers/openshift4/ose-jenkins-agent-base/5cdd8e2fbed8bd5717d66e77
203-
# - 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
201+
# - RHEL variant: https://catalog.redhat.com/software/containers/ocp-tools-4/jenkins-agent-base-rhel8/6241e3457847116cf8577aea
202+
# - Example: registry.redhat.io/ocp-tools-4/jenkins-agent-base-rhel8:v4.14.0
203+
# - Last tested: registry.redhat.io/ocp-tools-4/jenkins-agent-base-rhel8:v4.14.0-1706516367
205204
# - Community variant: https://quay.io/repository/openshift/origin-jenkins-agent-base?tab=tags
206205
# - Example: quay.io/openshift/origin-jenkins-agent-base:4.6
207-
# For RHEL7-based images (OpenShift 3.11):
208-
# - Available tags listed at: https://catalog.redhat.com/software/containers/openshift3/jenkins-slave-base-rhel7/581d2f3f00e5d05639b6515b.
209-
# - Example: registry.access.redhat.com/openshift3/jenkins-slave-base-rhel7:v3.11
210-
# - Latest tested tag: v3.11.248 (v3.11 is a moving target)
211-
JENKINS_AGENT_BASE_FROM_IMAGE=registry.redhat.io/openshift4/ose-jenkins-agent-base:v4.10.0-202305170515.p0.g2988625.assembly.stream
206+
JENKINS_AGENT_BASE_FROM_IMAGE=registry.redhat.io/ocp-tools-4/jenkins-agent-base-rhel8:v4.14.0-1706516367
212207

213208
# Dockerfile to use for Jenkins agents.
214209
# Use "Dockerfile.ubi8" for both OpenShift 3.11 and 4 (UBI8 base image)
@@ -217,25 +212,25 @@ JENKINS_AGENT_DOCKERFILE_PATH=Dockerfile.ubi8
217212
# Snyk CLI binary distribution url
218213
# Leave empty to avoid installing Snyk.
219214
# Releases are published at https://github.com/snyk/snyk/releases.
220-
# Latest tested version is v1.1097.0.
221-
JENKINS_AGENT_BASE_SNYK_DISTRIBUTION_URL=https://github.com/snyk/snyk/releases/download/v1.1097.0/snyk-linux
215+
# Latest tested version is v1.1284.0.
216+
JENKINS_AGENT_BASE_SNYK_DISTRIBUTION_URL=https://github.com/snyk/snyk/releases/download/v1.1284.0/snyk-linux
222217

223218
# AquaSec CLI binary distribution url
224219
# Leave empty to avoid installing AquaSec.
225220
# Releases are published at https://download.aquasec.com/scanner
226221
# Check Aqua versions backward compatibility at https://docs.aquasec.com/docs/version-compatibility-of-components#section-backward-compatibility-across-two-major-versions
227222
# To Download the aquaSec scanner cli and check their documentaion requires a valid account on aquasec.com
228-
# Latest tested version is 2022.4.284
229-
# Example: https://<USER>:<PASSWORD>@download.aquasec.com/scanner/2022.4.284/scannercli
223+
# Latest tested version is 2022.4.517
224+
# Example: https://<USER>:<PASSWORD>@download.aquasec.com/scanner/2022.4.517/scannercli
230225
JENKINS_AGENT_BASE_AQUASEC_SCANNERCLI_URL=
231226

232227
# Repository of shared library
233228
# You may also point to repository underneath REPO_BASE.
234229
SHARED_LIBRARY_REPOSITORY=https://github.com/opendevstack/ods-jenkins-shared-library.git
235230

236-
####################
237-
# OpenShift (3.11) #
238-
####################
231+
#############
232+
# OpenShift #
233+
#############
239234

240235
# Internal docker registry host and port - this is used
241236
# for pulling the agent images in jenkins.

docs/modules/administration/nav.adoc

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,7 @@
11
* Administration
22
** xref:administration:installation.adoc[Installation]
33
** Upgrade
4+
*** xref:administration:helm-migration.adoc[Helm migration]
45
*** xref:administration:update-2-to-3.adoc[2.x to 3.x]
56
*** xref:administration:update-older.adoc[older]
67
** xref:provisioning-app:configuration.adoc[Provisioning App]

0 commit comments

Comments
 (0)