Skip to content

Instantly share code, notes, and snippets.

@wataru420
Created March 18, 2012 04:37
Show Gist options
  • Save wataru420/2068947 to your computer and use it in GitHub Desktop.
Save wataru420/2068947 to your computer and use it in GitHub Desktop.
jenkinsでCron
rsync -av --exclude="*.svn" $WORKSPACE/scripts/ targethost:/path/to/scripts
ssh targethost sh /path/to/scripts/mkdir.sh
#!/bin/bash
mkdir log || { echo oops!; exit 1; }
echo created directory.
exit 0
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment