Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
…rters into feature/node20-agent
  • Loading branch information
BraisVQ committed Nov 24, 2023
2 parents 30a7946 + 832c9d8 commit 6ed3f21
Show file tree
Hide file tree
Showing 137 changed files with 3,844 additions and 1,257 deletions.
2 changes: 1 addition & 1 deletion .github/workflows/changelog-enforcer.yml
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ jobs:
changelog:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3.5.2
- uses: actions/checkout@v4.1.1
- uses: dangoslen/changelog-enforcer@v3
with:
changeLogPath: 'CHANGELOG.md'
Expand Down
29 changes: 21 additions & 8 deletions .github/workflows/continuous-integration-workflow.yml
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ jobs:
steps:
-
name: Checkout repository
uses: actions/checkout@v3.5.2
uses: actions/checkout@v4.1.1
-
name: Build docker image
working-directory: common/jenkins-agents/golang/docker
Expand All @@ -23,7 +23,7 @@ jobs:
steps:
-
name: Checkout repository
uses: actions/checkout@v3.5.2
uses: actions/checkout@v4.1.1
-
name: Build docker image
working-directory: common/jenkins-agents/jdk/docker
Expand All @@ -40,7 +40,7 @@ jobs:
steps:
-
name: Checkout repository
uses: actions/checkout@v3.5.2
uses: actions/checkout@v4.1.1
-
name: Build docker image
working-directory: common/jenkins-agents/nodejs12/docker
Expand All @@ -56,7 +56,7 @@ jobs:
steps:
-
name: Checkout repository
uses: actions/checkout@v3.5.2
uses: actions/checkout@v4.1.1
-
name: Build docker image
working-directory: common/jenkins-agents/nodejs16/docker
Expand All @@ -72,7 +72,7 @@ jobs:
steps:
-
name: Checkout repository
uses: actions/checkout@v3.5.2
uses: actions/checkout@v4.1.1
-
name: Build docker image
working-directory: common/jenkins-agents/nodejs18/docker
Expand All @@ -88,7 +88,7 @@ jobs:
steps:
-
name: Checkout repository
uses: actions/checkout@v3.5.2
uses: actions/checkout@v4.1.1
-
name: Build docker image
working-directory: common/jenkins-agents/python/docker
Expand All @@ -101,20 +101,33 @@ jobs:
steps:
-
name: Checkout repository
uses: actions/checkout@v3.5.2
uses: actions/checkout@v4.1.1
-
name: Build docker image
working-directory: common/jenkins-agents/terraform/docker
run: |
docker build --tag agent-terraform-test-ubi8 --file Dockerfile.ubi8 .
jenkins-agent-terraform-2306-ubi8:
name: Jenkins agent Terraform 2306 (UBI8)
runs-on: ubuntu-22.04
steps:
-
name: Checkout repository
uses: actions/[email protected]
-
name: Build docker image
working-directory: common/jenkins-agents/terraform-2306/docker
run: |
docker build --tag agent-terraform-2306-test-ubi8 --file Dockerfile.ubi8 .
jenkins-agent-scala-ubi8:
name: Jenkins agent Scala (UBI8)
runs-on: ubuntu-22.04
steps:
-
name: Checkout repository
uses: actions/checkout@v3.5.2
uses: actions/checkout@v4.1.1
-
name: Build docker image
working-directory: common/jenkins-agents/scala/docker
Expand Down
57 changes: 45 additions & 12 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,21 +1,54 @@
# Changelog

## Unreleased
- Generate one xml report per spec and merge them later ([#898](https://github.com/opendevstack/ods-quickstarters/pull/898))
### Added
- Added secret scanning in docker plain ([#963](https://github.com/opendevstack/ods-quickstarters/pull/963))

### Modified

### Fixed
- Maintenance for Golang Agent and QuickStarter ([#955](https://github.com/opendevstack/ods-quickstarters/issues/955))
- jenkins agents can not import private keys into gpg keyring to use with helm secrets ([#945](https://github.com/opendevstack/ods-quickstarters/issues/945))
- Streamlit quickstarter build fails to import nexus host certificates into truststore ([#951](https://github.com/opendevstack/ods-quickstarters/issues/951))

## [4.3.0] - 2023-07-13

### Added
- Addition of streamlit quickstarter ([#891](https://github.com/opendevstack/ods-quickstarters/issues/891))
- Cypress Cloud integration and switch to nodejs 18 ([#935](https://github.com/opendevstack/ods-quickstarters/pull/935))
- Provide build agent for Node.js 18 ([#794](https://github.com/opendevstack/ods-quickstarters/issues/794))

### Modified
- Generate one xml report per spec and merge them later ([#898](https://github.com/opendevstack/ods-quickstarters/pull/898))
- Removal of Centos agents ([#1209](https://github.com/opendevstack/ods-core/issues/1209))
- Update of Python agent, Python, Streamlit and Jupyter quickstarters ([#902](https://github.com/opendevstack/ods-quickstarters/issues/902))
- inf-terraform-aws: remove cloudformation stack from default quickstarter ([#934](https://github.com/opendevstack/ods-quickstarters/pull/934))
- inf-terraform-aws: switch from shared statefile location to dedicated ([#932](https://github.com/opendevstack/ods-quickstarters/pull/932))
- Change sonar-scan.json and release manager template to use any project ([#933](https://github.com/opendevstack/ods-quickstarters/pull/933))
- Add binutils package to jdk-17 agent ([#929](https://github.com/opendevstack/ods-core/issues/929))
- inf-terraform-[aws|azure], bump inspec-aws (v1.83.60) & inspec-azure (v1.118.41) library versions, drop use of symbolized keys in helper yaml files ([#927](https://github.com/opendevstack/ods-quickstarters/pull/927))
- inf-terraform-[aws|azure], jenkins-agent-terraform-2306 with tooling update (ruby 3.2.2, python 3.11) ([#923](https://github.com/opendevstack/ods-quickstarters/pull/923))
- Update python agent, pyhon, streamlit and jupyter quickstarters to 3.11 ([#924](https://github.com/opendevstack/ods-quickstarters/pull/924))
- Upgrade to Cypress 12 ([#908](https://github.com/opendevstack/ods-quickstarters/pull/908))
- Update scala agent and be-scala-play quickstarter ([#919](https://github.com/opendevstack/ods-quickstarters/pull/919))
- Update Ionic Quickstarter ([#917](https://github.com/opendevstack/ods-quickstarters/pull/917))
- Update Go quickstarter to Go 1.20 and align version of golangci-lint and go-junit-report ([#915](https://github.com/opendevstack/ods-quickstarters/pull/915))
- Rename maven-agent to jdk-agent, update springboot & spock-geb quickstarters ([#901](https://github.com/opendevstack/ods-quickstarters/pull/901))
- Update Angular and TypeScript quickstarters ([#910](https://github.com/opendevstack/ods-quickstarters/pull/910))
- Upgrade be-gateway-nginx to rocky 1.21 openresty/nginx ([#883](https://github.com/opendevstack/ods-quickstarters/pull/883))
- Set default rollout strategy to recreate ([#926](https://github.com/opendevstack/ods-quickstarters/issues/926))

### Fixed
- Fix oauth-proxy sidecar image ([#862](https://github.com/opendevstack/ods-quickstarters/issues/862))
- Upgrade be-gateway-nginx from fedora-rpm to rocky and from version 1.19 to 1.21 ([#880](https://github.com/opendevstack/ods-quickstarters/issues/880))
- Upgraded to Cypress 12, improve login support, add video support ([#899](https://github.com/opendevstack/ods-quickstarters/issues/899))
- Fix inf-terraform-agent bundler complaining about /tmp permissions ([#903](https://github.com/opendevstack/ods-quickstarters/pull/903))
- Fix nodejs 18 build by removing option always-auth ([#905](https://github.com/opendevstack/ods-quickstarters/issues/905))
- Fix Jenkinsfile params in StreamLit ([#941](https://github.com/opendevstack/ods-quickstarters/pull/941)) ([#939](https://github.com/opendevstack/ods-quickstarters/pull/939))
- Fixed Angular build for error "Unknown argument: sourceMap" ([#940](https://github.com/opendevstack/ods-quickstarters/pull/940))
- Fix mismatch on java version in base and jdk agents ([#916](https://github.com/opendevstack/ods-quickstarters/pull/916))
- TypeScript QS fails to build ([#897](https://github.com/opendevstack/ods-quickstarters/issues/897))
- Issues with agent permision in new OCP version ([#901](https://github.com/opendevstack/ods-quickstarters/pull/901))
- Removed protractor-related configuration from `ini.sh` in Ionic quickstarter ([#885](https://github.com/opendevstack/ods-quickstarters/issues/885))
- Upgrade packages in Angular and TypeScript quickstarters, fix nodejs18 agent error with auth in npm9 ([#885](https://github.com/opendevstack/ods-quickstarters/issues/885))
- Update Go quickstarter to Go 1.20 and align version of golangci-lint and go-junit-report ([#877](https://github.com/opendevstack/ods-quickstarters/issues/877))
- Fix mismatch on java versions in base agent and jdk agent ([#916](https://github.com/opendevstack/ods-quickstarters/pull/916))
- Scala maintenance ([#879](https://github.com/opendevstack/ods-quickstarters/issues/879))
- Ionic maintenance ([#899](https://github.com/opendevstack/ods-quickstarters/issues/899))
- Update of Maven agent, Java and Spock/Geb quickstarter ([#878](https://github.com/opendevstack/ods-quickstarters/issues/878))
- change /tmp permissions in inf-terraform-agent ([#903](https://github.com/opendevstack/ods-quickstarters/pull/903))
- nodejs 18 agent builds fail ([#905](https://github.com/opendevstack/ods-quickstarters/issues/905))
- Fix imagePullPolicy issue when verifying the image ([#874](https://github.com/opendevstack/ods-quickstarters/issues/874))
- Fix Release manager Jenkinsfile ([#943](https://github.com/opendevstack/ods-quickstarters/pull/943))

## [4.1] - 2022-11-17

Expand Down
16 changes: 16 additions & 0 deletions Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -131,6 +131,22 @@ start-jenkins-agent-terraform-build:
.PHONY: start-jenkins-agent-terraform-build


# JENKINS AGENT TERRAFORM-2306
## Install or update Jenkins Terraform agent resources.
install-jenkins-agent-terraform-2306: apply-jenkins-agent-terraform-build-2306 start-jenkins-agent-terraform-build-2306
.PHONY: install-jenkins-agent-terraform-2306

## Update OpenShift resources related to Jenkins Terraform agent image 2306.
apply-jenkins-agent-terraform-build-2306:
cd common/jenkins-agents/terraform-2306/ocp-config && tailor apply --namespace $(ODS_NAMESPACE)
.PHONY: apply-jenkins-agent-terraform-build-2306

## Start build of BuildConfig "jenkins-agent-terraform-2306".
start-jenkins-agent-terraform-build-2306:
oc -n $(ODS_NAMESPACE) start-build jenkins-agent-terraform-2306 --follow
.PHONY: start-jenkins-agent-terraform-build-2306


# HELP
# Based on https://gist.github.com/prwhite/8168133#gistcomment-2278355.
help:
Expand Down
5 changes: 5 additions & 0 deletions be-fe-mono-repo-plain/files/.pre-commit-config.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
repos:
- repo: https://github.com/gitleaks/gitleaks
rev: v8.16.1
hooks:
- id: gitleaks
5 changes: 5 additions & 0 deletions be-gateway-nginx/files/.pre-commit-config.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
repos:
- repo: https://github.com/gitleaks/gitleaks
rev: v8.16.1
hooks:
- id: gitleaks
5 changes: 5 additions & 0 deletions be-golang-plain/files/.pre-commit-config.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
repos:
- repo: https://github.com/gitleaks/gitleaks
rev: v8.16.1
hooks:
- id: gitleaks
11 changes: 5 additions & 6 deletions be-golang-plain/testdata/golden/sonar-scan.json
Original file line number Diff line number Diff line change
@@ -1,13 +1,12 @@
{
"key": "unitt-golang-iq-test",
"organization": "default-organization",
"name": "unitt-golang-iq-test",
"key": "{{.ProjectID}}-{{.ComponentID}}",
"name": "{{.ProjectID}}-{{.ComponentID}}",
"isFavorite": false,
"visibility": "public",
"extensions": [],
"qualityProfiles": [
{
"name": "Sonar way",
"name": "{{.SonarQualityProfile}}",
"language": "go",
"deleted": false
}
Expand All @@ -18,8 +17,8 @@
},
"breadcrumbs": [
{
"key": "unitt-golang-iq-test",
"name": "unitt-golang-iq-test",
"key": "{{.ProjectID}}-{{.ComponentID}}",
"name": "{{.ProjectID}}-{{.ComponentID}}",
"qualifier": "TRK"
}
]
Expand Down
5 changes: 5 additions & 0 deletions be-java-springboot/files/.pre-commit-config.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
repos:
- repo: https://github.com/gitleaks/gitleaks
rev: v8.16.1
hooks:
- id: gitleaks
11 changes: 5 additions & 6 deletions be-java-springboot/testdata/golden/sonar-scan.json
Original file line number Diff line number Diff line change
@@ -1,13 +1,12 @@
{
"key": "unitt-springboot",
"organization": "default-organization",
"name": "unitt-springboot",
"key": "{{.ProjectID}}-{{.ComponentID}}",
"name": "{{.ProjectID}}-{{.ComponentID}}",
"isFavorite": false,
"visibility": "public",
"extensions": [],
"qualityProfiles": [
{
"name": "Sonar way",
"name": "{{.SonarQualityProfile}}",
"language": "java",
"deleted": false
}
Expand All @@ -18,8 +17,8 @@
},
"breadcrumbs": [
{
"key": "unitt-springboot",
"name": "unitt-springboot",
"key": "{{.ProjectID}}-{{.ComponentID}}",
"name": "{{.ProjectID}}-{{.ComponentID}}",
"qualifier": "TRK"
}
]
Expand Down
4 changes: 2 additions & 2 deletions be-python-flask/Jenkinsfile.template
Original file line number Diff line number Diff line change
Expand Up @@ -29,7 +29,7 @@ def stageTestSuite(def context) {

stage('Prepare Test Suite') {
sh """
python3.9 -m venv testsuite
python3.11 -m venv testsuite
. ./testsuite/bin/activate
pip install -r tests_requirements.txt
pip check
Expand All @@ -50,7 +50,7 @@ def stageTestSuite(def context) {
def status = sh(
script: """
. ./testsuite/bin/activate
PYTHONPATH=src python3.9 -m pytest --junitxml=tests.xml -o junit_family=xunit2 --cov-report term-missing --cov-report xml --cov=src -o testpaths=tests
PYTHONPATH=src python3.11 -m pytest --junitxml=tests.xml -o junit_family=xunit2 --cov-report term-missing --cov-report xml --cov=src -o testpaths=tests
mv tests.xml ${testLocation}
mv coverage.xml ${coverageLocation}
mv .coverage ${coverageLocation}
Expand Down
5 changes: 5 additions & 0 deletions be-python-flask/files/.pre-commit-config.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
repos:
- repo: https://github.com/gitleaks/gitleaks
rev: v8.16.1
hooks:
- id: gitleaks
2 changes: 1 addition & 1 deletion be-python-flask/files/docker/Dockerfile
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
FROM registry.access.redhat.com/ubi9/python-39
FROM registry.access.redhat.com/ubi9/python-311

ARG nexusHostWithBasicAuth
ARG nexusHostWithoutScheme
Expand Down
2 changes: 1 addition & 1 deletion be-python-flask/files/requirements.txt
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
gunicorn==20.1.0
flask==2.2.2
flask==2.3.2
8 changes: 4 additions & 4 deletions be-python-flask/files/tests_requirements.txt
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
-r ./requirements.txt

mypy==0.982
flake8==5.0.4
pytest==7.2.0
pytest-cov==4.0.0
mypy==1.3.0
flake8==6.0.0
pytest==7.3.1
pytest-cov==4.1.0
11 changes: 5 additions & 6 deletions be-python-flask/testdata/golden/sonar-scan.json
Original file line number Diff line number Diff line change
@@ -1,13 +1,12 @@
{
"key": "unitt-python-flask-iq-test",
"organization": "default-organization",
"name": "unitt-python-flask-iq-test",
"key": "{{.ProjectID}}-{{.ComponentID}}",
"name": "{{.ProjectID}}-{{.ComponentID}}",
"isFavorite": false,
"visibility": "public",
"extensions": [],
"qualityProfiles": [
{
"name": "Sonar way",
"name": "{{.SonarQualityProfile}}",
"language": "py",
"deleted": false
}
Expand All @@ -18,8 +17,8 @@
},
"breadcrumbs": [
{
"key": "unitt-python-flask-iq-test",
"name": "unitt-python-flask-iq-test",
"key": "{{.ProjectID}}-{{.ComponentID}}",
"name": "{{.ProjectID}}-{{.ComponentID}}",
"qualifier": "TRK"
}
]
Expand Down
5 changes: 5 additions & 0 deletions be-scala-play/files/.pre-commit-config.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
repos:
- repo: https://github.com/gitleaks/gitleaks
rev: v8.16.1
hooks:
- id: gitleaks
11 changes: 5 additions & 6 deletions be-scala-play/testdata/golden/sonar-scan.json
Original file line number Diff line number Diff line change
@@ -1,13 +1,12 @@
{
"key": "unitt-be-scala-play-test",
"organization": "default-organization",
"name": "unitt-be-scala-play-test",
"key": "{{.ProjectID}}-{{.ComponentID}}",
"name": "{{.ProjectID}}-{{.ComponentID}}",
"isFavorite": false,
"visibility": "public",
"extensions": [],
"qualityProfiles": [
{
"name": "Sonar way",
"name": "{{.SonarQualityProfile}}",
"language": "scala",
"deleted": false
}
Expand All @@ -18,8 +17,8 @@
},
"breadcrumbs": [
{
"key": "unitt-be-scala-play-test",
"name": "unitt-be-scala-play-test",
"key": "{{.ProjectID}}-{{.ComponentID}}",
"name": "{{.ProjectID}}-{{.ComponentID}}",
"qualifier": "TRK"
}
]
Expand Down
5 changes: 5 additions & 0 deletions be-typescript-express/files/.pre-commit-config.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
repos:
- repo: https://github.com/gitleaks/gitleaks
rev: v8.16.1
hooks:
- id: gitleaks
Loading

0 comments on commit 6ed3f21

Please sign in to comment.