support git branches as input in stead of only master branch
This commit is contained in:
parent
06dc6d8f86
commit
94634773b1
|
@ -218,13 +218,13 @@ sub fetchInputBuild {
|
||||||
sub fetchInputGit {
|
sub fetchInputGit {
|
||||||
my ($db, $project, $jobset, $name, $type, $value) = @_;
|
my ($db, $project, $jobset, $name, $type, $value) = @_;
|
||||||
|
|
||||||
my $uri = $value;
|
(my $uri, my $branch) = split ' ', $value;
|
||||||
|
$branch = defined $branch ? $branch : "master";
|
||||||
|
|
||||||
my $timestamp = time;
|
my $timestamp = time;
|
||||||
my $sha256;
|
my $sha256;
|
||||||
my $storePath;
|
my $storePath;
|
||||||
|
|
||||||
my $branch = "master";
|
|
||||||
|
|
||||||
# First figure out the last-modified revision of the URI.
|
# First figure out the last-modified revision of the URI.
|
||||||
my $stdout; my $stderr;
|
my $stdout; my $stderr;
|
||||||
(my $res, $stdout, $stderr) = captureStdoutStderr(
|
(my $res, $stdout, $stderr) = captureStdoutStderr(
|
||||||
|
|
Loading…
Reference in a new issue