I hereby claim:
- I am bartekj on github.
- I am natur (https://keybase.io/natur) on keybase.
- I have a public key whose fingerprint is 104D 6F84 4E5A 64BC 4466 1F9A 731A 5845 68ED 51D1
To claim this, I am signing this object:
// Use Gists to store code you would like to remember later on | |
console.log(window); // log the "window" object to the console |
I hereby claim:
To claim this, I am signing this object:
- block: | |
- name: Check and register jenkins version using initpasswordfile | |
command: > | |
java -jar /opt/jenkins-cli.jar -http -s http://{{ jenkins_hostname }}:{{ jenkins_http_port }}/ | |
-auth @/var/lib/jenkins/secrets/initialAdminAuth | |
version | |
register: jenkins_version | |
- set_fact: | |
jenkins_version: "{{ jenkins_version.stdout }}" |
#!/bin/bash | |
#Required | |
apikey= | |
domain= | |
commonname=$1 | |
orgid= | |
#Change to your company details | |
country= |
#!/bin/bash | |
# This has to be run from master | |
git checkout master | |
# Update our list of remotes | |
git fetch | |
git remote prune origin | |
# Remove local fully merged branches | |
git branch --merged master | grep -v 'master$' | xargs git branch -d |
node { | |
echo 'Results included as an inline comment exactly how they are returned as of Jenkins 2.121, with $BUILD_NUMBER = 1' | |
echo 'No quotes, pipeline command in single quotes' | |
sh 'echo $BUILD_NUMBER' // 1 | |
echo 'Double quotes are silently dropped' | |
sh 'echo "$BUILD_NUMBER"' // 1 | |
echo 'Even escaped with a single backslash they are dropped' | |
sh 'echo \"$BUILD_NUMBER\"' // 1 | |
echo 'Using two backslashes, the quotes are preserved' | |
sh 'echo \\"$BUILD_NUMBER\\"' // "1" |