jenkins-stats.py is used to generate statics for jenkins server, so far it display the plugin's usage in each job, see related stackoverflow question:how can I know whether the plugin is used by any jobs in jenkins
python-requests module is required
| #!/usr/bin/env python | |
| ''' | |
| This script converts the output of Ansible's dynamic host list ec2.py to a flatly formmated static inventory file. | |
| Before running this script run `python ./ec2.py --refresh-cache > ansible-dynamic-host-list.json` | |
| See: http://docs.ansible.com/ansible/ec2_module.html | |
| ''' | |
| import json | |
| from pprint import pprint | |
| import operator |
jenkins-stats.py is used to generate statics for jenkins server, so far it display the plugin's usage in each job, see related stackoverflow question:how can I know whether the plugin is used by any jobs in jenkins
python-requests module is required
I hereby claim:
To claim this, I am signing this object:
| Download the latest snapshot from nexus using wget | |
| From Maven 3, support for uniqueVersion is disabled and when you distribute your snapshots by publishing them on nexus you end up with snapshot names ending with timestamps. Suddenly your QA or Integration server scripts start failing if you are getting war file from nexus repository as there is no unique name now. | |
| To get the latest version of snapshot you can use a service available from Nexus as | |
| wget -O my-services.war http://nexus.myorg.net/nexus/service/local/artifact/maven/redirect?r=snapshots\&g=my.company.product.services\&a=my-services\&v=1.0-SNAPSHOT\&p=war | |
| Where | |
| r is the id of the repository | |
| g is the group id |
| #!/bin/bash | |
| # | |
| # Copies certain kinds of known files and directories from a given Jenkins master directory | |
| # into a git repo, removing any old ones, adds 'em, commits 'em, pushes 'em. | |
| # | |
| set -ex | |
| if [ $# -ne 2 ]; then | |
| echo usage: $0 root_dir jenkins_master |
Fabric is a deployment management framework written in Python which makes remotely managing multiple servers incredibly easy. It is very similar to MakeFiles and Ant Files. While a working knowledge of Python is helpful when using Fabric, it certainly isn't necessary. This tutorial will cover the steps necessary to get started with the framework and introduce how it can be used to improve on administering groups of servers.
One of the best things about Fabric is that the systems which you are remotely administering require nothing beyond the standard OpenSSH server. The master server which you are running Fabric from will, however, need a few things installed before you can get started. Let's get started.