Skip to content

Instantly share code, notes, and snippets.

@Rubenmp
Rubenmp / commit.sh
Last active November 5, 2023 23:13
Script to git add all the folder changes, then commit them adding the task id (parsed from the branch name) prefix to the commit message.
#!/bin/sh
#
# This script will perform git add and commit all the changes in the current directory.
# It includes a "[task_key-<id>] " prefix to the commit message when
# the current branch name is like:
# "<branch_type>/task_key-<id><optional_extra_branch_name>".
# If the current branch name does not fit the previous pattern no prefix will be added.
#
# Usage:
@Rubenmp
Rubenmp / JenkinsCasc
Last active March 7, 2021 15:39
Example of jenkins configuration as code
jenkins:
agentProtocols:
- "JNLP4-connect"
- "Ping"
authorizationStrategy:
loggedInUsersCanDoAnything:
allowAnonymousRead: false
crumbIssuer:
standard:
excludeClientIPFromCrumb: false