-
-
Save jellybob/874816 to your computer and use it in GitHub Desktop.
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
#get the war files from the git repo | |
branch = "release-12" | |
bash "name_git_repo" do | |
user "username" | |
cwd "path/to/repo" | |
code "git checkout -b #{branch}-#{DateTime.now} origin/#{branch}" | |
action :nothing | |
end | |
git "/path/to/repo" do | |
repository "user@server:~/path/to/repo}" | |
reference branch | |
user "username" | |
action :sync | |
notifies :execute, resources(:bash => "name_git_repo") | |
end |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment