Skip to content

Instantly share code, notes, and snippets.

View kisztof's full-sized avatar
🎯
Focusing

Krzysztof Słomka kisztof

🎯
Focusing
View GitHub Profile
@kisztof
kisztof / .gitignore
Last active August 29, 2015 14:23 — forked from octocat/.gitignore
Added few new rules
# Compiled source #
###################
*.com
*.class
*.dll
*.exe
*.o
*.so
*.pyc
*.out
alias g='git'
alias gm="git merge"
alias grm='git rm'
alias gs='git status'
alias gss='git status -s'
alias gl='git pull'
alias ga='git add'
alias grh='git reset HEAD'
alias gp='git push'
alias gcount='git shortlog -sn'
@kisztof
kisztof / Jenkinsfile
Created January 13, 2020 07:42
Jenkinsfile with depenedent stage on choosed agent from parameter
def AGENT_LABEL = null
node('master'){
stage('pre'){
AGENT_LABEL = env.SLOT
}
}
pipeline {
agent none
@kisztof
kisztof / jenkins-vault
Last active April 14, 2021 09:07
Jenkins + Hashicorp Vault
vault secrets enable -path=secret_storage kv
vault kv put secret_storage/test1 ke1="val1"
vault policy write jenkins policy.hcl
vault auth enable approle
vault write auth/approle/role/jenkins \
secret_id_ttl=48h \
token_num_uses=10 \
token_ttl=96h \