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
// Check if a slave has < 10 GB of free space, wipe out workspaces if it does | |
import hudson.model.*; | |
import hudson.util.*; | |
import jenkins.model.*; | |
import hudson.FilePath.FileCallable; | |
import hudson.slaves.OfflineCause; | |
import hudson.node_monitors.*; | |
for (node in Jenkins.instance.nodes) { |
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
# How to check if the disk is full or not ? | |
df -h | |
# Filter files from disk | |
find . -type f -name "*config.xml" | |
# Parsing command outputs using jq tool | |
brew install jq | |
sfdx force:config:list --json | jq '.' |
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
# EXISTING_REPO_NAME=plugins_extractor | |
git clone ssh://<token>@git-codecommit.us-west-2.amazonaws.com/v1/repos/${EXISTING_REPO_NAME} | |
cd ${EXISTING_REPO_NAME} | |
for remote in `git branch -r | grep -v master `; do git checkout --track $remote ; done | |
git remote -v | |
git remote rm origin | |
# ORG_URL = "soma.salesforce" | |
# Ensure this new repo is created. |
OlderNewer