Coder Social home page Coder Social logo

kyounger / casc-plugin-dependency-calculation Goto Github PK

View Code? Open in Web Editor NEW
15.0 15.0 12.0 283 KB

Given the plugins.yaml file, this script will calculate plugin-catalog.yaml file for a CloudBees CasC bundle.

License: MIT License

Shell 98.86% Dockerfile 1.14%

casc-plugin-dependency-calculation's People

Contributors

andreasgrob avatar dependabot[bot] avatar kyounger avatar sboardwell avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar

casc-plugin-dependency-calculation's Issues

Option to supply multiple source files

In some cases, it would be useful to be able to supply multiple source files and have the plugin catalog created for the cumulative list of plugins found. e.g.

  • plugins-core.yaml (to be installed on all controllers)
  • plugins-alpha.yaml (to be installed on controller alpha only)
  • plugins-beta.yaml (to be installed on controller beta only)

Preserve headers of files

A customer has custom comment headers in both their plugin catalog as well as the plugins files. It would be nice to keep those headers in place in the output. Potential problem: The plugin catalog is not an input.

cascgen filter issue

there is a functional difference in behavior between the two commands:

  1. cascgen plugins myenv/raw-bundles/something
  2. cd myenv; cascgen plugins

Wherein number 2 correctly updates the plugins yaml and shows actual errors. Number 1 merely copies it to my effective-bundle. Both generate the plugin catalog. Behavior seems inconsistent.

Documentation Review

I am suing this project for the EKS blueprints until this capability is embraced by the product

The following review has been provided by @kellie-freeman (CloudBees' Center Of Excellent) of the outputs from plugins.yaml and catalog.yaml

image image image

Latest plugins added to CasC bundle instead of correct CAP versions

After upgrading to 2.303.3.3 the following plugins were added to the CasC bundle:

pipeline-stage-tags-metadata -> 1.9.3
pipeline-model-definition -> 1.9.3
plugin-util-api -> 2.5.1
pipeline-model-extensions -> 1.9.3
pipeline-model-api -> 1.9.3

However these were the latest versions instead of the CAP versions for 2.303.3.3

I think I found the bug in the script as its not considering the CAP plugin. It requires update in "jenkins-update-center" to use like "https://jenkins-updates.cloudbees.com/update-center/envelope-core-mm/update-center.json?id=cap-cje-mm&version=$CI_VERSION" based on this link https://support.cloudbees.com/hc/en-us/articles/230655088-A-plugin-release-is-not-available-from-Update-Center

And disabled usage of environment variable JENKINS_UC_HASH_FUNCTION & CACHE_DIR.

With those change, I was able to generate the plugins.yaml and plugin-catalog.yaml for 2.303.3.3 and managed controller was able to start successfully.

For further details, see support ticket number: 210888

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.