Skip to content

Instantly share code, notes, and snippets.

@georgi
Created January 18, 2012 15:29
Show Gist options
  • Save georgi/1633537 to your computer and use it in GitHub Desktop.
Save georgi/1633537 to your computer and use it in GitHub Desktop.
function build() {
local branch=$(git branch --no-color 2> /dev/null | sed -e '/^[^*]/d' -e 's/* \(.*\)/\1/')
local job=soundcloud_${branch}_specs_00$1
local url=http://builder.soundcloud.com/view/All/job/${job}/lastBuild/consoleText
local cwd="\/srv\/hudson\/.jenkins\/jobs\/${job}\/workspace\/"
curl -s $url | sed "/\/usr\/local\/rvm\/.*/d" | sed -e "s/$cwd/.\//"
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment