This file contains 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
version: '3' | |
services: | |
zookeeper: | |
image: zookeeper:3.4.9 | |
hostname: zookeeper | |
ports: | |
- "2181:2181" | |
environment: | |
ZOO_MY_ID: 1 |
This file contains 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
// Related to https://issues.jenkins-ci.org/browse/JENKINS-26481 | |
abcs = ['a', 'b', 'c'] | |
node('master') { | |
stage('Test 1: loop of echo statements') { | |
echo_all(abcs) | |
} | |
stage('Test 2: loop of sh commands') { |
This file contains 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
Each Jenkins page has a REST API hyperlink at the bottom, this is because each page has its own endpoint. | |
http://localhost:8080/me | |
configure | |
Click 'Show API Token' | |
78e21f82a9e137614fef5b9593bcf827 = API Token | |
curl -s -u goll:78e21f82a9e137614fef5b9593bcf827 http://localhost:8080/crumbIssuer/api/json |
This file contains 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
pipeline { | |
agent any | |
environment { | |
PACKAGE="github.com/abtris/bee" | |
GOPATH="/Users/abtris/go" | |
GOROOT="/usr/local/opt/go/libexec" | |
} | |
stages { | |
stage('Preparation') { | |
steps { |
This file contains 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/bash | |
case $# in | |
0) | |
echo "Usage: $0 {start|stop}" | |
exit 1 | |
;; | |
1) | |
case $1 in | |
start) |
This file contains 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
😻😻😻😻😻😻😻😻🔥🔥🔥🔥🔥🔥💤💤💤💤💀💀💀👺👺👺👺👹👹👽💩😹😹🔥🔥🔥😿😿😼😅😥😰😭😂😢😍😘😤😤😷👲👳👮👷💂👶👦👧😲😵😶😇😑😯😖😋😆😡😠👽💀💦💧💛💙💜💚❤️💔💗💓💕💖💞💘💋💌💍💎💎💎💎💎💎💎💎💎👤👥🎅🎄🎁🎋🎉🎊🎈🎌🔮🎥💿📀💽📼📹🔋🚿🔔🔕🔉🔊🔈🔇🔆🔅📢📣📡⏳⌛️⏰⌚️🔓🔒🔏🔐💣💸🔫🔪💊💉🚬🚪🔨🔩🔧🚽💴💴💵💵💵💷💷💷💶💶💰💰💰💰🔪🔪🔪🔪🔪🚽🚽🚽🚽🚽🚽💒🏨🏩🏥🚁🚦🚥🇷🇺🇬🇧🈯️🈳🈵🈴🈲🉐🈹🈺🈹🈶🈚️🆗🆙🆕🆒🆓🆖📶🎦📶🈁🚫🔞📵🚯🚱🚳🚷㊙️🉑㊗️🈷🈸🈂♉️♊️♋️♌️♍️♎️♏️♐️♑️♒️♓️⛎🔯💲💲💱©®™©®™❌‼️⁉️❗️❓❕❔⭕️🔝🔚🔙🔛🔜🔃🕛🕧🕐🕜🕑🕝🕒🕞🕓🕟🕔🕠🕕🕖🕗🕘🕙🕚💮♠️♥️♣️♦️🕡🕢🕣🕤🕥🕦✖️➕➖➗✔️☑️💯🔘🔗💮🔗➰〰〽️🔱◼️◻️◾️◽️▪️▫️🔺🔲🔳⚫️⚪️🔴🔵🔻⬜️⬛️🔶🔷🔸🔹 |
This file contains 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
#!groovy | |
# Best of Jenkinsfile | |
# `Jenkinsfile` is a groovy script DSL for defining CI/CD workflows for Jenkins | |
node { | |
} |
This file contains 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/bash | |
set -e | |
if [ $# -eq 0 ]; then | |
echo "USAGE: $0 plugin1 plugin2 ..." | |
exit 1 | |
fi | |
plugin_dir=/var/lib/jenkins/plugins |
This file contains 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/bash | |
# First install BasicTeX: http://mirror.ctan.org/systems/mac/mactex/mactex-basic.pkg | |
# Allows you to run tlmgr without sudo. | |
$ sudo chown -R `whoami` /usr/local/texlive | |
# Update everything. | |
$ tlmgr update --self --all | |
# Install extra packages used by the default pandoc template. |
This file contains 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
#!/usr/bin/env bash | |
# checks if branch has something pending | |
function parse_git_dirty() { | |
git diff --quiet --ignore-submodules HEAD 2>/dev/null; [ $? -eq 1 ] && echo "*" | |
} | |
# gets the current git branch | |
function parse_git_branch() { | |
git branch --no-color 2> /dev/null | sed -e '/^[^*]/d' -e "s/* \(.*\)/\1$(parse_git_dirty)/" |
NewerOlder