-
Type: Improvement
-
Status: Resolved
-
Priority: Minor
-
Resolution: Fixed
-
Affects Version/s: None
-
Fix Version/s: None
-
Component/s: None
-
Environment:Jenkins
-
Story Points:3
We have currently 3 commons libraries files
- https://github.com/nuxeo/nuxeo-retention/blob/master/ci/jenkinsfiles/common-lib.groovy
- https://github.com/nuxeo/nuxeo-coldstorage/blob/master/ci/jenkinsfiles/common-lib.groovy
- https://github.com/nuxeo/nuxeo-aspera-connector/blob/master/ci/Jenkinsfiles/common_lib.groovy
they have almost the same content.
it would be nice to merge them into a single file, hosted into https://github.com/nuxeo/jx-napps-env/tree/master/ci/Jenkinsfiles/common-lib.groovy
the content of the 'common-lib.groovy' under the addon repository can replace by:
#!groovy /* Instead of duplicating a lot of build related code in each repo include the common one from this file using the command below: Don't forget to put configure GITHUB_TOKEN inside Jenkins as it is a very bad idea to include it inside your code. */ apply from: 'https://raw.githubusercontent.com/nuxeo/jx-napps-env/master/ci/Jenkinsfiles/common-lib.groovy?token=${env.GITHUB_TOKEN}'
- duplicates
-
NXBT-3447 "Generify" n'Apps addons pipeline scripts (aka "shared library")
- Resolved