Simple collection of Groovy scripts to help me maintain some Jenkins systems.
See also https://wiki.jenkins-ci.org/display/JENKINS/Jenkins+Script+Console
Please comment & let me know if you have a fork / fixes you'd like to include.
| (* | |
| * Finder Open iTerm Here - v1.0.2 - 4/14/2011 | |
| * http://benalman.com/ | |
| * | |
| * Copyright (c) 2011 "Cowboy" Ben Alman | |
| * Dual licensed under the MIT and GPL licenses. | |
| * http://benalman.com/about/license/ | |
| *) | |
| tell application "Finder" |
| # defaults for jenkins continuous integration server | |
| JENKINS_ARGS="-jnlpUrl http://test.lnc.jp:8080/computer/wock/slave-agent.jnlp" | |
| # jenkins home location | |
| JENKINS_HOME=/opt/jenkins-slave | |
| # location of the jenkins war file | |
| JENKINS_WAR=$JENKINS_HOME/slave.jar | |
| # pulled in from the init script; makes things easier. | |
| NAME=jenkins |
| #!/bin/sh | |
| ### | |
| # SOME COMMANDS WILL NOT WORK ON macOS (Sierra or newer) | |
| # For Sierra or newer, see https://github.com/mathiasbynens/dotfiles/blob/master/.macos | |
| ### | |
| # Alot of these configs have been taken from the various places | |
| # on the web, most from here | |
| # https://github.com/mathiasbynens/dotfiles/blob/5b3c8418ed42d93af2e647dc9d122f25cc034871/.osx |
| # | |
| def na=double.nan; | |
| # | |
| # Define time that OR begins (in hhmm format, | |
| # 0930 is the default): | |
| # | |
| input ORBegin = 0930; | |
| # | |
| # Define time that OR is finished (in hhmm format, | |
| # 10:00 is the default): |
| <html> | |
| <body> | |
| <!-- live chat button --> | |
| <a id="liveagent_button_online_573i00000004DD7" href="javascript://Chat" style="display: none;" onclick="liveagent.startChat('573i00000004DD7')"> | |
| Online Chat | |
| </a> | |
| <div id="liveagent_button_offline_573i00000004DD7" style="display: none;"> | |
| Offline Chat | |
| </div> |
| #!/usr/bin/expect -f | |
| # | |
| # VIPAccess.exp | |
| # | |
| # Command-line emulation of Symantec's VIP Access software token. | |
| # Usage: | |
| # ./VIPAccess.exp [v] | |
| # If the "v" argument (or any argument) is specified, verbose output | |
| # will be produced on stderr. The OTP value will be output on stdout. | |
| # |
| @Grab('org.springframework.ws:spring-ws-core:2.2.0.RELEASE') | |
| @Grab('org.springframework.ws:spring-xml:2.2.0.RELEASE') | |
| import org.springframework.ws.client.core.WebServiceTemplate | |
| import org.springframework.ws.soap.client.core.SoapActionCallback | |
| import org.springframework.ws.soap.saaj.SaajSoapMessageFactory | |
| import org.springframework.xml.transform.StringSource | |
| import groovy.util.slurpersupport.GPathResult | |
| import groovy.util.XmlSlurper |
Simple collection of Groovy scripts to help me maintain some Jenkins systems.
See also https://wiki.jenkins-ci.org/display/JENKINS/Jenkins+Script+Console
Please comment & let me know if you have a fork / fixes you'd like to include.
| # Adding include/exclude rules to CQ/AEM package filters through cURL. | |
| # Through a simple search, you will find numerous lists of CQ/AEM cURL commands. | |
| # However, I haven't seen an example of adding rules to package filters. The | |
| # JSON "rules" key takes an array value. You can leave the array empty if you | |
| # don't need to include any rules. The array is of JSON objects with a | |
| # "modifier" key and value of "include" or "exclude", and a "pattern" key with | |
| # your path or regular expression as the value. | |
| # create package |