bgaifullin / jenkins-job-builder-active-choice Goto Github PK
View Code? Open in Web Editor NEWEnables support for Active Choice Plugin plugin in Jenkins Job Builder.
License: MIT License
Enables support for Active Choice Plugin plugin in Jenkins Job Builder.
License: MIT License
Would you please release a new version to PyPI? It would be great to have all the latest fixes (including Python 3 support).
jenkins_jobs.errors.JenkinsJobsException: Duplicate entry point found for component type: 'parameter', 'parameter',name: 'dynamic-reference'
How to avoid this behavior?
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?
The latest version of this module jenkins-job-builder-active-choice 0.0.4 is not working with Python 3. Could you please update it to work with Python 3. Thanks.
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?
Couldn't get python3 to work with this. I hacked a workaround, it might be of help to others.
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?
LICENSE
says this project is copyright Ryan Leckey. Is that accurate? I don't see this name referenced in the Git history or elsewhere.
A declarative, efficient, and flexible JavaScript library for building user interfaces.
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. ๐๐๐
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google โค๏ธ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.