equal
deleted
inserted
replaced
20 |
20 |
21 my $sBOOTSTRAP_DIR="C:\\Apps\\FBF\\bootstrap"; |
21 my $sBOOTSTRAP_DIR="C:\\Apps\\FBF\\bootstrap"; |
22 my $sJOB_BASE_DIR="D:\\fbf_project"; |
22 my $sJOB_BASE_DIR="D:\\fbf_project"; |
23 my $nMAX_JOBDIR_AGE_SECONDS = 86400; # max number of seconds after which the letter is forcibly released |
23 my $nMAX_JOBDIR_AGE_SECONDS = 86400; # max number of seconds after which the letter is forcibly released |
24 my $nLOCK_FILE_MAX_ATTEMPTS = 5; |
24 my $nLOCK_FILE_MAX_ATTEMPTS = 5; |
25 my $sNUMBERS_FILE="\\\\v800008.ad-sfpd.intra\\g\$\\numbers.txt"; |
25 my $sNUMBERS_FILE="\\\\bishare\\SF_builds\\numbers.txt"; |
26 my $sLETTERS_FILE="D:\\letters.txt"; |
26 my $sLETTERS_FILE="D:\\letters.txt"; |
27 my $nMAX_LETTER_AGE_SECONDS = 86400; # max number of seconds after which the letter is forcibly released |
27 my $nMAX_LETTER_AGE_SECONDS = 86400; # max number of seconds after which the letter is forcibly released |
28 |
28 |
29 my $sFbfProjectRepo = ''; |
29 my $sFbfProjectRepo = ''; |
30 my $sFbfProjectDir = ''; |
30 my $sFbfProjectDir = ''; |
31 my $sFbfConfigRepo="\\\\v800008.ad-sfpd.intra\\g\$\\mercurial_internal\\fbf\\configs\\pkgbuild"; |
31 my $sFbfConfigRepo="\\\\bishare\\mercurial_internal\\fbf\\configs\\pkgbuild"; |
32 my $sFbfConfigDir = ''; |
32 my $sFbfConfigDir = ''; |
33 my $sJobLabel = ''; |
33 my $sJobLabel = ''; |
34 my $nCmdLineNumber; |
34 my $nCmdLineNumber; |
35 my $bTestBuild = 0; |
35 my $bTestBuild = 0; |
36 GetOptions(( |
36 GetOptions(( |
45 |
45 |
46 if (!$sJobLabel or !($sFbfProjectRepo or $sFbfProjectDir)) |
46 if (!$sJobLabel or !($sFbfProjectRepo or $sFbfProjectDir)) |
47 { |
47 { |
48 print "Usage: build_package.pl --label=LABEL (--projectrepo=REPO | --projectdir=DIR) OPTIONS\n"; |
48 print "Usage: build_package.pl --label=LABEL (--projectrepo=REPO | --projectdir=DIR) OPTIONS\n"; |
49 print "\tOPTIONS:\n"; |
49 print "\tOPTIONS:\n"; |
50 print "\t--configrepo=REPO Use REPO location for the config instead of \\\\v800008\\g\$\\mercurial_development\\oss\\FCL\\interim\\fbf\\config\\pkgbuild\\n"; |
50 print "\t--configrepo=REPO Use REPO location for the config instead of \\\\bishare\\mercurial_internal\\fbf\\config\\pkgbuild\n"; |
51 print "\t--configdir=DIR Use DIR location for the config (exclusive with --configrepo)\n"; |
51 print "\t--configdir=DIR Use DIR location for the config (exclusive with --configrepo)\n"; |
52 print "\t--number=N Force build number to N\n"; |
52 print "\t--number=N Force build number to N\n"; |
53 print "\t--testbuild Use d:\\numbers_test.txt for numbers and d:\\SF_builds_test to publish results\n"; |
53 print "\t--testbuild Use d:\\numbers_test.txt for numbers and d:\\SF_builds_test to publish results\n"; |
54 exit(0); |
54 exit(0); |
55 } |
55 } |
56 |
56 |
57 my $sTestBuildOpts = ""; |
57 my $sTestBuildOpts = ""; |
58 $sTestBuildOpts = "-Dsf.spec.publish.networkdrive=d:\\SF_builds_test" if ( $bTestBuild ); |
58 $sTestBuildOpts = "-Dsf.spec.publish.networkdrive=d:\\SF_builds_test -Dsf.spec.publish.rootdir=d:\\SF_builds_test" if ( $bTestBuild ); |
59 $sNUMBERS_FILE = "d:\\numbers_test.txt" if ( $bTestBuild ); |
59 $sNUMBERS_FILE = "d:\\numbers_test.txt" if ( $bTestBuild ); |
60 |
60 |
61 my $sJobDir = mkdir_unique("$sJOB_BASE_DIR\\$sJobLabel"); |
61 my $sJobDir = mkdir_unique("$sJOB_BASE_DIR\\$sJobLabel"); |
62 |
62 |
63 print("cd $sBOOTSTRAP_DIR\n"); |
63 print("cd $sBOOTSTRAP_DIR\n"); |