Skip to content

Instantly share code, notes, and snippets.

@AlexAstroCat
Created October 8, 2009 02:44
Show Gist options
  • Save AlexAstroCat/204667 to your computer and use it in GitHub Desktop.
Save AlexAstroCat/204667 to your computer and use it in GitHub Desktop.
#!/bin/sh
USER=hudson
PASS=password
HUDSON_URL=http://$USER:$PASS@<my-build-server>:8080
JOB=$1
TOKEN=$2
CAUSE=$2
set -x
lwp-request -ds "$HUDSON_URL/job/$JOB/build?token=$TOKEN"
@olleolleolle
Copy link

Thanks for writing up such a neat article about CI for iOS on Jenkins.

# Curious detail: on some systems, like OS X, the lwp-request points to a program that will need an additional parameter:
lwp-request -m GET -ds "$HUDSON_URL/job/$JOB/build?token=$TOKEN"

Many ways to skin a cat, of course.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment