Skip to content

Instantly share code, notes, and snippets.

View gravcat's full-sized avatar

poppoppop gravcat

View GitHub Profile
@gravcat
gravcat / bamboo-agent.sh
Created September 19, 2016 16:07
Bamboo agent service script which is unpacked by the remote agent jar found in Bamboo 5.9.3.
#! /bin/sh
#
# Copyright (c) 1999, 2006 Tanuki Software Inc.
#
# Java Service Wrapper sh script. Suitable for starting and stopping
# wrapped Java applications on UNIX platforms.
#
#-----------------------------------------------------------------------------
@gravcat
gravcat / bamboo-agent
Created September 19, 2016 15:39 — forked from yatesr/bamboo-agent
Init script for starting/stopping a bamboo agent
#!/bin/bash
# bamboo-agent Init script for running bamboo agent
#
# chkconfig: 2345 98 02
#
# description: Starts and stops bamboo agent
# This is just a delegator to the Bamboo agent script.
USER=bamboo
AGENT_HOME=/home/$USER/bamboo-agent-home/bin
@gravcat
gravcat / art-api-set-props.sh
Last active June 13, 2016 19:36
artifactory set properties example
curl -X PUT -u username:password "https://yourartifactoryserver.com/artifactory/api/storage/some-repository-local/exact/desired/path/file.zip?properties=foo=bar|a%20spaced%20%key=somevalue|version=1.2.3.4|someweird\=value=foo\=bar
@gravcat
gravcat / art-api-deploy-item.sh
Last active March 22, 2016 23:27
artifactory deploy artifact example
curl --user username:password --upload-file "/home/user/path/to/file.zip" -H"X-Checksum-Sha1:1EFC9E5F84D4713CB7304625FE0CB2A1F39709A4" -H"X-Checksum-Md5:B32BB2F9317DCE938CC8A34742D4EF8D" -X PUT "https://yourartifactoryserver.com/artifactory/some-repository-local/exact/desired/path/file.zip"