Coder Social home page Coder Social logo

jenkins-job-builder-active-choice's People

Contributors

armyers avatar bgaifullin avatar ktdreyer avatar levindmytro2 avatar qaaaaaaaa avatar stephanx avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar

jenkins-job-builder-active-choice's Issues

release a new version to PyPI

Would you please release a new version to PyPI? It would be great to have all the latest fixes (including Python 3 support).

Support for JJB v2.0

I'm trying to use this extension with JJB v2.0.6 and I'm getting the following error:

$ jenkins-jobs --conf builder.cfg  --user $BUILD_USER_ID --password $BUILD_USER_TOKEN update jobs.yaml
INFO:jenkins_jobs.cli.subcommand.update:Updating jobs in ['jenkins/builder/golden_image_pipeline.yaml'] ([])
Traceback (most recent call last):
  File "/usr/local/bin/jenkins-jobs", line 11, in <module>
    sys.exit(main())
  File "/usr/local/lib/python2.7/dist-packages/jenkins_jobs/cli/entry.py", line 146, in main
    jjb.execute()
  File "/usr/local/lib/python2.7/dist-packages/jenkins_jobs/cli/entry.py", line 140, in execute
    ext.obj.execute(self.options, self.jjb_config)
  File "/usr/local/lib/python2.7/dist-packages/jenkins_jobs/cli/subcommand/update.py", line 135, in execute
    options, jjb_config)
  File "/usr/local/lib/python2.7/dist-packages/jenkins_jobs/cli/subcommand/update.py", line 114, in _generate_xmljobs
    xml_jobs = xml_job_generator.generateXML(job_data_list)
  File "/usr/local/lib/python2.7/dist-packages/jenkins_jobs/xml_config.py", line 77, in generateXML
    xml_jobs.append(self._getXMLForJob(job))
  File "/usr/local/lib/python2.7/dist-packages/jenkins_jobs/xml_config.py", line 88, in _getXMLForJob
    self._gen_xml(xml, data)
  File "/usr/local/lib/python2.7/dist-packages/jenkins_jobs/xml_config.py", line 98, in _gen_xml
    module.gen_xml(xml, data)
  File "/usr/local/lib/python2.7/dist-packages/jenkins_jobs/modules/parameters.py", line 1022, in gen_xml
    self.registry.dispatch('parameter', pdefs, param)
  File "/usr/local/lib/python2.7/dist-packages/jenkins_jobs/registry.py", line 260, in dispatch
    format(name, component_type))
jenkins_jobs.errors.JenkinsJobsException: Unknown entry point or macro 'active-choice' for component type: 'parameter'.

$ pip list | grep jenkins-job-builder
jenkins-job-builder (2.0.6)
jenkins-job-builder-active-choice (0.0.4)

Am I missing something or is JJB v2.0+ not yet supported?

Cant use jjb varaiables inside groovy script

Hey,
When im trying to use a parameter from jjb i get it as a simple string and not the var content:

      - active-choices:
          name: TEST
          description: test
          script:
            groovy: |-
              '{package_name}'
            use-groovy-sandbox: false

this is inside a template - package_name is a variable passed for this template
am i doing something wrong or there is no support for such case?

Doesn't work.

I installed it via pip.
But, when I try to run JJB with your example job, I get this:
jenkins_jobs.errors.JenkinsJobsException: Unknown entry point or macro 'active-choice' for component type: 'parameter'.
Is there something I need to do after installing with pip?

copyright name in LICENSE file

LICENSE says this project is copyright Ryan Leckey. Is that accurate? I don't see this name referenced in the Git history or elsewhere.

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.