- vagrant 1.7.4
- vagrant-vmware-workstation 4.0.5
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| --- | |
| driver: | |
| name: docker | |
| driver_config: | |
| provision_command: | |
| - curl -L https://www.opscode.com/chef/install.sh | bash -s -- -v 12.3.0 | |
| - env GEM_HOME=/tmp/verifier/gems GEM_PATH=/tmp/verifier/gems GEM_CACHE=/tmp/verifier/gems/cache /opt/chef/embedded/bin/gem install thor busser busser-serverspec serverspec bundler && chown -R kitchen:kitchen /tmp/verifier | |
| require_chef_omnibus: false | |
| use_sudo: false |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| # located at chef_repo/environments/org1-prod.rb | |
| require 'deep_merge' | |
| name 'org1-prod' | |
| description 'Production environment for org1' | |
| org1_yml_path = File.expand_path('../common/org1.yml', __FILE__) | |
| common = YAML.load_file(org1_yml_path) | |
| default_attributes( | |
| common['default'].deep_merge!( | |
| # declare all you org1-prod specific things here. |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| #!/bin/sh | |
| # The script is called with `git-remote-<protocol> <remote_name> <remote_url>` | |
| remote_name=$1 | |
| remote_url=$2 | |
| # The GIT_DIR is already created when this remote helper is run | |
| original_repo=$(echo $remote_url | sed 's/^symlink:\/\///') | |
| link_target=$(echo $GIT_DIR | sed 's/\/\.git$//') |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| # show the total count and list the first 10 files per day | |
| for i in `seq 1 100`; do files=$(find . -daystart -mtime $i); num=$(echo $files | wc -w); date=$(date -d "-$i day" +%Y-%m-%d); if [ $num -gt 0 ]; then echo "$num files found for $date"; echo $files | tr ' ' '\n' | xargs ls -l | head -n 10; fi; done | |
| # also archive... | |
| for i in `seq 1 100`; do files=$(find /var/log/ccu/noise-test -daystart -mtime $i -name "TM-Noise*.csv.*.gz"); num=$(echo $files | wc -w); date=$(date -d "-$i day" +%Y-%m-%d); if [ $num -gt 0 ]; then echo "$num files found for $date"; echo $files | tr ' ' '\n' | xargs ls -l | head -n 10; tar -czf /tmp/TM-NoiseTest-$date.tgz $files; fi; done | |
| # long | |
| for i in `seq 1 100`; do |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| #!/bin/sh | |
| curl 'http://localhost:8080/pluginManager/api/xml?depth=1&xpath=/*/*/shortName|/*/*/version&wrapper=plugins' | perl -pe 's/.*?<shortName>([\w-]+).*?<version>([^<]+)()(<\/\w+>)+/\1@\2\n/g' | sort |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| --- | |
| # ^^^ YAML documents must begin with the document separator "---" | |
| # | |
| #### Example docblock, I like to put a descriptive comment at the top of my | |
| #### playbooks. | |
| # | |
| # Overview: Playbook to bootstrap a new host for configuration management. | |
| # Applies to: production | |
| # Description: | |
| # Ensures that a host is configured for management with Ansible. |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| import jenkins.* | |
| import jenkins.model.* | |
| Jenkins.instance.getExtensionList('org.jenkinsci.plugins.scriptsecurity.scripts.ScriptApproval')[0].get().preapproveAll() |
I was trying to get more meaningful stack traces, but it seems that the exception we catch does not carry any more specific details about the step that failed. The only info we get is that the pipeline step failed and the exit code it failed with.
Example pipeline code snippet:
node {
try {
stage('do-stuff') {
sh "echo do somehing; exit 0"
}