Bug 2061616

Summary: Pre compute Jenkins Plugins list
Product: OpenShift Container Platform Reporter: Akram Ben Aissi <abenaiss>
Component: JenkinsAssignee: Akram Ben Aissi <abenaiss>
Status: CLOSED ERRATA QA Contact: Jitendar Singh <jitsingh>
Severity: high Docs Contact:
Priority: high    
Version: 4.10CC: aos-bugs, jitsingh, pbhattac, spandura
Target Milestone: ---   
Target Release: 4.10.z   
Hardware: Unspecified   
OS: Unspecified   
Whiteboard:
Fixed In Version: Doc Type: If docs needed, set a value
Doc Text:
Story Points: ---
Clone Of: 2061614
: 2067128 (view as bug list) Environment:
Last Closed: 2022-03-28 12:03:18 UTC Type: ---
Regression: --- Mount Type: ---
Documentation: --- CRM:
Verified Versions: Category: ---
oVirt Team: --- RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: --- Target Upstream Version:
Embargoed:
Bug Depends On: 2061614, 2069134    
Bug Blocks: 2067128    

Description Akram Ben Aissi 2022-03-08 02:48:51 UTC
+++ This bug was initially created as a clone of Bug #2061614 +++

the primary goal is to avoid the strong requirement of a midstream repository while running automated productisation (CPaaS) by providing a convenient way to generate the comprehensive list of plugins used by the Jenkins image.

the secondary goal is to remove supply chain errors which could rarely happen in case of a commit of the base-plugins.txt only, and in the meanwhile, if a transitive dependency changes, we could end-up release a different version compared to what we have test in local development environment or in CI.

Generating the comprehensive list of plugins at build time allows its strict usage during the CI build and the CPaaS build.

Before this PR, the comprehensive list of plugins was provided manually from the CI build logs to the ART team.
By having the list forcibly generated at commit time (a git pre-commit hook can now be added), and being checked at CI time, ensures that the commited list of plugins is the exactly one that will be tested during CI openshift/release#25817 ; and then, it can be used as-is in CPaaS as well without having to re-compute the list.
If a drift between the committed list of plugins and its locally computed comprehensive list is detected, the CI build fails by asking the developer to re-compute the list locally and push it to the code repository.

Comment 4 Jitendar Singh 2022-03-23 13:46:54 UTC
verified

Comment 6 errata-xmlrpc 2022-03-28 12:03:18 UTC
Since the problem described in this bug report should be
resolved in a recent advisory, it has been closed with a
resolution of ERRATA.

For information on the advisory (OpenShift Container Platform 4.10.6 bug fix update), and where to find the updated
files, follow the link below.

If the solution does not work for you, open a new bug report.

https://access.redhat.com/errata/RHBA-2022:1026