Saravanan666/pypi-org huggingface dataset:
Package: jenkins-job-builder
Jenkins Job Builder takes simple descriptions ofJenkinsjobs inYAMLorJSONformat and uses them to configure Jenkins. You can keep your job descriptions in
human readable text format in a version control system to make changes and
auditing easier. It also has a flexible template system, so creating many
similarly configured jobs is easy.To install:$ pip install --user jenkins-job-builderOnline documentation:https://jenkins-job-builder.readthedocs.io/en/latest/DevelopersBug report:https://storyboard.openstack.org/#!/project/723Repository:https://opendev.org/jjb/jenkins-job-builderCloning:git clone https://opendev.org/jjb/jenkins-job-builder.gitInstall pre-commit fromhttps://pre-commit.com/#introin order to run some
minimal testing on your commits.A virtual environment is recommended for development.  For example, Jenkins
Job Builder may be installed from the top level directory:$ virtualenv .venv
$ source .venv/bin/activate
$ pip install -r test-requirements.txt -e .Patches are submitted via Gerrit at:https://review.opendev.orgPlease do not submit GitHub pull requests, they will be automatically closed.Mailing list:https://groups.google.com/forum/#!forum/jenkins-job-builderIRC:#openstack-jjbon OFTCMore details on how you can contribute is available on our wiki at:https://docs.opendev.org/opendev/infra-manual/latest/developers.htmlWriting a patchWe ask that all code submissions bepep8andpyflakesclean.  The
easiest way to do that is to runtoxbefore submitting code for
review in Gerrit.  It will runpep8andpyflakesin the same
manner as the automated test suite that will run on proposed
patchsets.When creating new YAML components, please observe the following style
conventions:All YAML identifiers (including component names and arguments)
should be lower-case and multiple word identifiers should use
hyphens.  E.g., “build-trigger”.The Python functions that implement components should have the same
name as the YAML keyword, but should use underscores instead of
hyphens. E.g., “build_trigger”.This consistency will help users avoid simple mistakes when writing
YAML, as well as developers when matching YAML components to Python
implementation.Unit TestsUnit tests have been included and are in thetestsfolder. Many unit
tests samples are included as examples in our documentation to ensure that
examples are kept current with existing behaviour. To run the unit tests,
execute the command:tox -e py38Unit tests could be run in parallel, using pytest-parallel pytest plugin:tox -e py38 -- --workers=autoNote: Viewtox.inito run tests on other versions of Python,
generating the documentation and additionally for any special notes
on running the test to validate documentation external URLs from behind
proxies.Installing without setup.pyFor YAML support, you will needlibyamlinstalled.Mac OS X:$ brew install libyamlThen install the required python packages usingpip:$ sudo pip install PyYAML python-jenkins
Package: jenkins-job-builder-addons
A set of addons for jenkins job builderFree software: Apache licenseDocumentation:https://jenkins-job-builder-addons.readthedocs.orgFeaturesSupports job foldersSupports Build Pipeline ViewSupports Delivery Pipeline ViewInstallAs of August 12th 2015 this requires two special branches. One for python-jenkins and one for jenkins-job-builderGet python-jenkinsgit clone git://git.openstack.org/stackforge/python-jenkinscd python-jenkinsgit fetchhttps://review.openstack.org/stackforge/python-jenkinsrefs/changes/85/180185/19 && git checkout FETCH_HEADpython setup.py installGet jenkins-job-buildergit clone git://git.openstack.org/openstack-infra/jenkins-job-buildercd jenksin-job-buildergit fetchhttps://review.openstack.org/openstack-infra/jenkins-job-builderrefs/changes/07/134307/2 && git checkout FETCH_HEADpython setup.py installGet jenkins-job-builder-addonsgit clonegit@github.com:jimbydamonk/jenkins-job-builder-addons.gitcd jenkins-job-builder-addonspython setup.py installHistory0.1.0 (2015-01-11)First release on PyPI.
Package: jenkins-job-builder-naginator
Python module that extendsjenkins-job-builderto support new publisher,naginator.DocumentationPlease seehttp://jenkins-job-builder-naginator.readthedocs.org/Installationpipinstalljenkins-job-builder-naginatorDevelopmentTo work on this project, install the dependencies, install the develop branch,
make change, and run tests with tox:pipinstall-rrequirements.txt-rtest-requirements.txtpythonsetup.pydevelop# ... make changes ...toxNoteIt is best to use a virtualenv for developing this package.
Package: jenkins-job-builder-workflow
Python module that extendsjenkins-job-builderto support new project type,workflow.Based onhttps://github.com/thomasvandoren/jenkins-job-builder-naginatorDocumentationPlease seehttp://jenkins-job-builder-workflow.readthedocs.org/Installationpipinstalljenkins-job-builder-workflowDevelopmentTo work on this project, install the dependencies, install the develop branch,
make change, and run tests with tox:pipinstall-rrequirements.txt-rtest-requirements.txtpythonsetup.pydevelop# ... make changes ...toxNoteIt is best to use a virtualenv for developing this package.
Package: jenkins-job-cli
JcliSmall cli to list, run, and check jenkins jobshttps://user-images.githubusercontent.com/40476330/159119721-a55d2f7c-7dff-4fa0-91cd-08f33a78494d.mp4Installationpip install jenkins-job-cliArchlinux users: you can find the pkgbuildhereUsageUsage: jcli [OPTIONS] COMMAND [ARGS]...

  jcli - Jenkins job cli

Options:
  --version  Show the version and exit.
  --help     Show this message and exit.

Commands:
  config   Create jcli config
  jenkins  Get Jenkins server info
  jobs     List and execute jobs
  nodes    Nodes management
  plugins  Plugins management
Package: jenkins-job-linter
# jenkins-job-linter[![Build Status](https://travis-ci.org/OddBloke/jenkins-job-linter.svg?branch=master)](https://travis-ci.org/OddBloke/jenkins-job-linter)
[![codecov](https://codecov.io/gh/OddBloke/jenkins-job-linter/branch/master/graph/badge.svg)](https://codecov.io/gh/OddBloke/jenkins-job-linter)
[![Snap Status](https://build.snapcraft.io/badge/OddBloke/jenkins-job-linter.svg)](https://build.snapcraft.io/user/OddBloke/jenkins-job-linter)
[![Requirements Status](https://requires.io/github/OddBloke/jenkins-job-linter/requirements.svg?branch=master)](https://requires.io/github/OddBloke/jenkins-job-linter/requirements/?branch=master)
[![Documentation Status](https://readthedocs.org/projects/jenkins-job-linter/badge/?version=latest)](http://jenkins-job-linter.readthedocs.io/en/latest/?badge=latest)
[![Code Climate](https://codeclimate.com/github/OddBloke/jenkins-job-linter/badges/gpa.svg)](https://codeclimate.com/github/OddBloke/jenkins-job-linter)Perform linting checks against Jenkins Job Builder XML## Getting Started`sh virtualenv-p$(which python3) jjl . ./jjl/bin/activate pip installjenkins-job-linterjenkins-jobslint path/to/my/job/builder/definitions `## DocumentationSeehttp://jenkins-job-linter.readthedocs.io/en/latest/for the latest documentation.
Package: jenkins-jobs-fail-the-build
What is it?This package registers entry points that extendJenkins Job Builderto support the JenkinsFail The Build Plugin.Installationpip install jenkins-jobs-fail-the-buildUsageComplete:- job:
    name: 'MyJob'
    builders:
        - set-build-result: "ABORTED|CYCLE|FAILED|SUCCESS|UNSTABLE"Creditsjenkins-jobs-fail-the-buildwas created by Enrico MillsIt’s development is supported bySocket MobileSpecial thanks toHynek SchlawackwhoseSharing Your Labor of Lovewas instrumental in the publication of this package.
Package: jenkins-jobs-sauce-ondemand
Jenkins Job Builder SauceLabs OndemandAJenkins Job Builderplugin to support configuring theSourceLabs Ondemandbuild wrapper:wrappers:-sauce-ondemand-ng:enable-sauce-connect:truesauce-host:foosauce-port:8080credentials-id:ad7f5c34-6c5b-11e7-8e08-784f436e5c58native-app-package:foo/pathwebdriver-browsers:-Linuxfirefox32-Linuxfirefox44appium-browsers:-Linuxfirefox33-Linuxfirefox43use-latest-webbrowser-versions:falselaunch-sauce-connect-on-slave:trueverbose-logging:truecondition:alwaysunique-tunnel-perbuild:falsesauce-connect-path:/bin/scsauce-connect-options:'-N'LicenseCopyright 2017 Zendesk Inc.Licensed under the Apache License, Version 2.0 (the “License”); you may not use this file except in compliance with the License. You may obtain a copy of the License athttp://www.apache.org/licenses/LICENSE-2.0Unless required by applicable law or agreed to in writing, software distributed under the License is distributed on an “AS IS” BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the License for the specific language governing permissions and limitations under the License.
Package: jenkins-plugins-auto-update
Jenkins Auto UpdaterUsing the magic of automation from Selenium and Python, this script will automatically update your Jenkins plugins[1].[1]At least most of them...Requirements- Python >= 3.7
- Firefox >= 91.5UsageJust run the script with the following arguments.python jenkinsautoupdater.py <jenkins URL> <username> <password> [auto restart jenkins]Example:python jenkinsautoupdater.py https://example.org admin AS3cur3P@$$w0rd! trueNote: If you execute the command with true at the end, Jenkins will auto-restart after downloading the updates.
Default behaviour is to not restart Jenkins.CaveatsSometimes the script will not select some checkboxes, but at least will click most of them.
It's up to you if you want to click the last ones or retry. If you want to fix this behaviour, you're welcome to do so.
Package: jenkins-python-lib
Python Jenkins is a python wrapper for theJenkinsREST API which aims to provide a more conventionally pythonic way of controlling
a Jenkins server.  It provides a higher-level API containing a number of
convenience functions.We like to use python-jenkins to automate our Jenkins servers. Here are some of
the things you can use it for:Create new jobsCopy existing jobsDelete jobsUpdate jobsGet a job’s build informationGet Jenkins master version informationGet Jenkins plugin informationStart a build on a jobCreate nodesEnable/Disable nodesGet information on nodesCreate/delete/reconfig viewsPut server in shutdown mode (quiet down)List running buildsDelete buildsWipeout job workspaceCreate/delete/update folders[1]Set the next build number[2]Install pluginsand many more..To install:$ sudo python setup.py installOnline documentation:http://python-jenkins.readthedocs.org/en/latest/DevelopersBug report:https://bugs.launchpad.net/python-jenkinsRepository:https://opendev.org/jjb/python-jenkinsCloning:git clonehttps://opendev.org/jjb/python-jenkinsPatches are submitted via Gerrit at:https://review.opendev.org/#/q/project:jjb/python-jenkinsPlease do not submit GitHub pull requests, they will be automatically closed.The python-jenkins developers communicate in the#openstack-jjbchannel
on Freenode’s IRC network.More details on how you can contribute is available on our wiki at:https://docs.opendev.org/opendev/infra-manual/latest/developers.htmlWriting a patchBe sure that you lint code before created an code review.
The easiest way to do this is to install gitpre-commithooks.Installing without setup.pyThen install the required python packages usingpip:$ sudo pip install jenkins-python-libFootnotes[1]The freeCloudbees Folders Pluginprovides support for a subset of the full folders functionality. For the
complete capabilities you will need the paid for version of the plugin.[2]TheNext Build Number Pluginprovides support for setting the next build number.
Package: jenkins-rapid
Jenkins RapidA commandline tool to quickly develop/debug Jenkins piepline using jenkinsfilesFeaturesUpload jenkinsfile from localCreate/Update jobs (with parameters too)Triggers buildsStreams log output to terminalStop running jobs you’ve startedDelete jenkins jobsWork with Jenkinsfiles directly from your favorite IDEUsage:Create and trigger job$ jrp --job <job_name> --file <jenkinsfile >--url <jenkins_url> --user <username> --token <user_api_tokern>Install$ pip3 install jenkins-rapidConfigOnly generated API tokens will workEnvironment variables can be set for the following values for jenkins url and user credentials and will take presedence over commandline argumentsexport JENKINS_URL=http://localhost:8080
  export JENKINS_USER=admin
  export JENKINS_PASSWORD=<jenkins_api_token>


  # Deletes job
      $ jrp delete --job <job_name> --url <jenkins_url> --user <username> --token <user_api_tokern>Passing build parametersBuild parameters can be passed using a yaml file. See example below---
    - name: PARAM1
      value: some value
    - name: TEST_PARAM2
      value: 19
    - name: TEST_PARAM3
      value: 999
    - name: TEST_PARAM4
      value: morevalues
    - name: SOME_PARAM
      value: obscure value
Package: jenkins-utils
AbstractNotesRequirementsUsageAdvanced useReferencesAbstractImplements some jenkins utils in python way.Notesjenkins-utils does not support plain-credentials, ssh-credentials plugins,
so there’s no option to encrypt/decrypt these data yet.RequirementsPython 3.4+pycrypto (non windows systems)pycryptodomex (windows)NoteDoes not work automatically on python-3.7 and Windows due to inavailability
to build pycrypto module on host system, however any of installed
pycrypto/pycryptodomex modules are supported on any os/platform.UsageCurrently there’s encrypt/decrypt operations implemented and gathered in convenient and
python developer friendly form.As an example you an decrypt (or encrypt) message using Jenkins’s master and hudson secret keys:$pythoninvoke.py--master-keymaster.key--hudson-secret-keyhudson.util.Secret\--actiondecrypt"{AQAAABAAAAAgd+820Q6QR4ABkf3JpXHacuO3zdj11o8JD/6VIJi8XjS9GJJyWquIYbNokyKKsIfN}"thisissimpletexttoencrypt$pythoninvoke.py--master-keymaster.key--hudson-secret-keyhudson.util.Secret\--aes-typecbc--actionencrypt"this is simple text to encrypt"{AQAAABAAAAAgfb9K8Kaq716l8SwGDqEFMRzm/3ynYDK7IsfI4C7BlVyMIlP/5JGfYK1n1Nc10VoD}$NoteMaster key is located at $JENKINS_HOME/secrets/master.keyHudson key is located at $JENKINS_HOME/secrets/hudson.util.SecretAdvanced usereader.py#!/usr/bin/env python3importsysimportbase64importargparsefromlxmlimportetreefromjenkins.utilsimportSecretdefdecrypt(opts):master_key=open(opts.master_key,'rb').read()hudson_secret_key=open(opts.hudson_key,'rb').read()secret=Secret(master_key=master_key,hudson_secret_key=hudson_secret_key)credentials=etree.fromstring(open(opts.credentials,'rb').read())fornodeincredentials.xpath('//com.cloudbees.plugins.credentials.''impl.UsernamePasswordCredentialsImpl'):username,*_=node.xpath('./username/text()')password_encoded,*_=node.xpath('./password/text()')password=base64.decodebytes(password_encoded.encode('utf-8'))print("Encrypted (username:password): ({}:{})".format(username,secret.decrypt(password)))defmain():parser=argparse.ArgumentParser()parser.add_argument('-c','--credentials',dest='credentials',required=True,help='jenkins credentials.xml file')parser.add_argument('-m','--master-key',dest='master_key',help='jenkins secrets master.key file',required=True)parser.add_argument('-H','--hudson-secret-key',dest='hudson_key',help='jenkins secrets hudson.util.Secret file')options=parser.parse_args()sys.exit(decrypt(options))if__name__=='__main__':main()$pythonreader.py-ccredentials.xml-mmaster.key-Hhudson.util.SecretEncrypted(username:password):(scm-bot:W9CA6qTajV)Encrypted(username:password):(artifactory-bot:vB9V9BtPN4)Encrypted(username:password):(git-bot:V32c5S8TnHCvmfr)...andsoonReferencesJenkins util/Secret.java sourcesJenkins python decrypter
Package: jenkins-validate
ufes-tess-validatorThe repository for performing automatic validation for tess upgrades of UFES clustersjenkins_validateThe package is used to trigger a validator job in jenkins(http://10.148.183.183:8080/may be other server IP), after building finished,it can also download artifacts and
calculate the passed rules percentage, if the percentage is bigger than 95, it shows validate successful, else it shows validate failed.how to use itinstall packagespip install jenkinsapi
   pip install jenkins-validate==0.0.12put the follow commands into a python script:from jenkins_validate import auto_validator
   auto_validator.jenkins_validate(param1,param2,param3,...)   

   #input the parameters,"clustername","web_type","jenkins_server" and "localpath_to_artifact_dir" are the Required parameters
   #when the parameter of pull_method = "LBMS", then the parameter "token" must be upload, it is your keystone token saved in a file.the way to get keystone token which can be used to get rules from LBMShttps://wiki.vip.corp.ebay.com/display/CLOUD/LBMS+User+Documentation+for+REST+APIs#LBMSUserDocumentationforRESTAPIs-Keystone-Basedthen run the python script.
Package: jenkins-webapi
Jenkins-webapi is a library for programatically accessing Jenkins’
remote webAPI. It has the following advantages over other similar
libraries:Supports Python versions 2.6 to 3.6.Has a comprehensive test suite.A concise and intuitive API.Documentation:http://jenkins-webapi.readthedocs.org/en/latest/Development:https://github.com/gvalkov/jenkins-webapiPackage:http://pypi.python.org/pypi/jenkins-webapiChangelog:http://jenkins-webapi.readthedocs.org/en/latest/changelog.html
Package: jenks
Jenks is a command-line tool, designed to interact with a remote jenkins host, including:Start by either filling out a configuration file, or adding a job with:$ jenks config -a http://localhost:8080/job/bar/After that, you can get status information with:$ jenks
0: localhost, foo (last build #7) SUCCESS
1: localhost, bar (last build #3) SUCCESSJenks works with unique keys assigned to each job, rather than job
names. You can see it in the above example: it’s the 0 and 1 at the
beginning of the line.You can trigger the job foo from above with:$ jenks trigger :0Get the latest build information from the job bar with:$ jenks build :1Get information about multiple jobs simultaneously by adding multiple keys:$ jenks -l :10And you can pull up more information with:$ jenks docsInstallationsince jenkinsapi (the main dependency) is only python2
compatible, jenks is currently only python2 compatible.There’s a few ways to install Jenks.Through pip:pip install jenks
pip install http://github.com/toumorokoshi/jenks/tarball/masterThroughsprinter:sprinter install https://raw.github.com/toumorokoshi/jenks/master/sprinter.cfgConfiguration (.jenksrc)Jenks requires a .jenksrc file to configure itself. Jenks searches in
the current directory and moves up parent directories until it finds one.A .jenksrc file should be a yaml file, with a dictionary of hosts and
some keys for configuration.Here is an example .jenksrc file with all options:'localhost':
  url: 'http://localhost:8080/'
  jobs:
    - foo
    - bar
'http://jenkins.local':
  jobs:
    - bazthe in-depth configuration for a host is:url: the url to the host. If the url doesn’t exist, the host name is used as the urljobs: a list of job names to add to the listKeysBy default, Jenks will perform operations on all jobs in the
configuration. However, you can restrict the jobs to specific ones by
passing a list of keys. Each job is given a unique key generated by
jenks. For example, using -l on the example configuration will yield:$ jenks -l
0 http://jenkins.local baz
1 localhost foo
2 localhost barThe character at the beginning of each line is the key. Each key is a
single character in the set: [0-9a-zA-Z]. You can pass in a string of
characters prefixed with a colon to get information about those:$ jenks -l :20
0 http://jenkins.local baz
2 localhost barYou can pass in keys as:an argument:$ jenks -c :0with standard in:$ echo '0' | jenksJob CodesYou can also reference jobs from the jenksrc by name, using the job
code syntax. The job code syntax looks like:<host_key>/<job_name>
localhost/barFor example, here’s how to get information about the latest build of a job by job code:$ jenks build localhost/barExamplesOnes of Jenks’ goals is to follow the Unix philosophy of doing one
thing and doing it well. By being a modular part and supporting stdin,
it’s possible to chain Jenks with other commands.For example, here’s a command that only lists status of jobs whose host or job name match a specific regex:$ jenks -l | grep "foo" | cut -d ' ' -f 1 | jenks
0: localhost, foo (last build #7) SUCCESSMonitor the status of your Jenkins jobs:$ watch jenks
Package: jenks-natural-breaks
CFFI accelerated Jenks classificationFree software: MIT licenseInstallationpip install jenks-natural-breaksDocumentationhhttps://jenks-natural-breaks.readthedocs.io/Ported fromhttps://github.com/simple-statistics/simple-statisticsDevelopmentTo run the all tests run:toxNote, to combine the coverage data from all the tox environments run:Windowsset PYTEST_ADDOPTS=--cov-append
toxOtherPYTEST_ADDOPTS=--cov-append toxChangelog0.1.0 (2017-12-13)First release on PyPI.
Package: jenkviz
NAMEjenkviz - visualization of aJenkinsbuild flow usinggraphviz.DESCRIPTIONTool to crawl a Jenkins site using a build url and producing aSVGoutput to render the build flow.TheSVGgraph displays:
- A summary box with:the total elapsed timethe cumulated duration for each builda throughput (duration/elapsed)number of buildsBlack arrows to render upstream and downstream relationOrange arrows to render downstream only relationBuild with a blue/yellow/red/gray box for Success/Unstable/Failed/Aborted
build statusBuild information are stored in a local sqlite database. The
database is used as a cache to not fetch twice a build page
but also to get information using plain SQL:sqlite3 ~/jenkviz.db
-- Slowest jobs
sqlite> SELECT name, SUM(duration_s), MAX(duration_s), AVG(duration_s), COUNT(1)
        FROM build
        GROUP BY name
        ORDER BY SUM(duration_s) DESC
        LIMIT 10;
-- Slave load
sqlite> SELECT host, SUM(duration_s) FROM build GROUP BY host ORDER BY SUM(duration_s) DESC LIMIT 10;USAGEjenkviz [–version] [–logfile=LOGFILE] [–database=DATABASE] COMMAND [OPTIONS] ARGUMENTSjenkviz -hCOMMANDScrawl [–direct|–reverse|–explore] [–output SVG_FILE] JENKINS_BUILD_URLThe--directoption shows only downstream and upstream relation,
removing downstream only link.The--reverseoption crawl backward using upstream builds.The--exploreoption to keep downstream builds that have
upstream build out of the scope of the origin build (the upstream
build is not a descendant of the root build)EXAMPLESjenkviz crawlhttp://jenkins.site/jenkviz/job_name/42/LIMITATIONSJenkviz try to find downstream/upstream build using the web page and
the REST API to work around theJENKINS-6211bug.INSTALLATIONOn Debian/Ubuntu:sudo aptitude install graphviz
sudo easy_install jenkvizSOURCE REPOSITORYJenkviz is currently hosted atgithub.ISSUES AND BUG REPORTSFeature requests and bug reports can be made here:https://github.com/bdelbosc/jenkviz/issues
Package: jenkyns
jenkyns (ˈdʒɛŋkaɪnz) is a command line tool that helps with the daily management of your Jenkins jobs, implemented using Python and with a focus on but not limited to Python projects. The main goal is to automate configuration tasks and make new project setups simple and fast, and systematic changes to a set of similar jobs easy.For details, see the documentation onhttp://jhermann.github.io/jenkyns/.