diff options
author | Elizabeth Liner <eliner@us.ibm.com> | 2016-07-06 10:13:08 -0500 |
---|---|---|
committer | Matthew A. Ploetz <maploetz@us.ibm.com> | 2016-07-08 16:03:55 -0400 |
commit | 393a4f4ded0d15ee59100b737be0668627ac6921 (patch) | |
tree | 188eccd3913e70dbcb88d3af622812a897dddfc1 | |
parent | 57d56447cf064b25f749b22e4a1698f78ca48291 (diff) | |
download | talos-hostboot-393a4f4ded0d15ee59100b737be0668627ac6921.tar.gz talos-hostboot-393a4f4ded0d15ee59100b737be0668627ac6921.zip |
Auto Release Coreq and Prereq Fix
The problem wasn't that we weren't able to access the bin, but
rather that we weren't responding to the prompt from the script.
This was tested in a separate job, it runs the prompt, responds
and creates the prereq/coreq track.
Change-Id: Ic03689fefac7639c73d7824036f17c02a657a782
Reviewed-on: http://ralgit01.raleigh.ibm.com/gerrit1/26674
Tested-by: Jenkins Server <pfd-jenkins+hostboot@us.ibm.com>
Tested-by: FSP CI Jenkins <fsp-CI-jenkins+hostboot@us.ibm.com>
Reviewed-by: Andrew J. Geissler <andrewg@us.ibm.com>
Reviewed-by: Stephen M. Cprek <smcprek@us.ibm.com>
Reviewed-by: Matthew A. Ploetz <maploetz@us.ibm.com>
-rwxr-xr-x | src/build/tools/hbRelease | 14 |
1 files changed, 9 insertions, 5 deletions
diff --git a/src/build/tools/hbRelease b/src/build/tools/hbRelease index 57b6a4cc5..6e3e16462 100755 --- a/src/build/tools/hbRelease +++ b/src/build/tools/hbRelease @@ -106,8 +106,6 @@ foreach my $arg (@ARGV) ############################## Begin Actions ################################## - - sub execute_define { print "Defining new level...\n"; @@ -2540,6 +2538,7 @@ sub execute_cmvc_reqs #need to get commit my $commits = git_commit_history($level, $released); + my $email = $globals{"emails"}; foreach my $commit (@{$commits}) { @@ -2548,7 +2547,10 @@ sub execute_cmvc_reqs { if($coreq ne "") { - run_system_command("/esw/bin/coreqTracks -r $release -t $feature -t2 $coreq -e $globals{email}"); + my $cmd = "/esw/bin/coreqTracks -r $release -t $feature -t2 $coreq -e $email"; + print "$cmd\n"; + my $output = `echo "y" | $cmd`; + print $output; } } @@ -2557,11 +2559,13 @@ sub execute_cmvc_reqs { if($prereq ne "") { - run_system_command("/esw/bin/prereqTracks -r $release -t $prereq -t2 $feature -e $globals{email}"); + my $cmd = "/esw/bin/prereqTracks -r $release -t $prereq -t2 $feature -e $email"; + print "$cmd\n"; + my $output = `echo "y" | $cmd`; + print $output } } } - } # sub run_system_command |