Changeset 34940


Ignore:
Timestamp:
2021-02-28T22:46:37+13:00 (3 years ago)
Author:
anupama
Message:

Previous commit was from Win machine, this from 32 bit LSB linux. Committing to preserve more changes to do the http to https changeovers. The 32 bit linux VM did not have wget as part of the LSB env, and after adding in a GS compiled wget (which has https support) to release-kits/bin, running it with the --no-check-certificate flag allowed bypassing the need for the 32 bit LSB's snapshots' task.pl file to hardcode the next version number of GS2 and GS3. Other release machines obtained this info from a file on greenstone.org, which the 32 bit LSB task.pl now does too with the wget in release-kits.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • other-projects/nightly-tasks/snapshot/trunk/task.pl

    r34939 r34940  
    106106
    107107#keep wget/curl base command in a variable
    108 my $httpRetrieve = $^O eq "darwin" ? "curl" : "wget -O -";
     108my $httpRetrieve = $^O eq "darwin" ? "curl" : "wget --no-check-certificate -O -";
    109109
    110110#print STDERR "@@@@@@@@@@ PATH: ".$ENV{'PATH'}."\n";
     
    117117    if ( $major_version == 2 ) {
    118118            $ENV{'snapshot_id2'} = `$httpRetrieve https://www.greenstone.org/next-release.txt`;
     119        #HARDCODED DUE TO THE 32 BIT LSB ENVIRONMENT NOT HAVING WGET
     120        #$ENV{'snapshot_id2'} = "2.88";
    119121        chomp($ENV{'snapshot_id2'});
    120122    } else {
    121123        $ENV{'snapshot_id3'} = `$httpRetrieve https://www.greenstone.org/next-release-greenstone3.txt`;
     124        #HARDCODED DUE TO THE 32 BIT LSB ENVIRONMENT NOT HAVING WGET
     125        #$ENV{'snapshot_id3'} = "3.10";
    122126        chomp($ENV{'snapshot_id3'});
    123127    }
     
    142146    #set the path to server.exe
    143147    $ENV{'SERVER_EXE_LOCATION'} = "https://www.greenstone.org/caveat-emptor/latest-server.exe";
    144 
     148   
    145149} elsif ( $ENV{'TASK_NAME'} =~ "stable\$" ) {
    146150    $ENV{'SNAPSHOT_MODE'} = "stable";
     
    149153    #dont proceed if main/stable is old
    150154    #get last changed date from svn
    151     open( INFO, "svn info http://svn.greenstone.org/main/$ENV{'BRANCH_PATH'}|" )
     155    open( INFO, "svn info https://svn.greenstone.org/main/$ENV{'BRANCH_PATH'}|" )
    152156        or die "Cant determine age of stable tag";
    153157    my $changed_date;
Note: See TracChangeset for help on using the changeset viewer.