Subversion Repositories DevTools

Rev

Rev 7361 | Go to most recent revision | Show entire file | Ignore whitespace | Details | Blame | Last modification | View Log | RSS feed

Rev 7361 Rev 7383
Line 332... Line 332...
332
        {
332
        {
333
            $rv = localTool('jats_gen_releasenote.pl', '-verbose', $opt_verbose, '-UpdateRmFiles', '-releasenote', $outfile);
333
            $rv = localTool('jats_gen_releasenote.pl', '-verbose', $opt_verbose, '-UpdateRmFiles', '-releasenote', $outfile);
334
        }
334
        }
335
 
335
 
336
        #
336
        #
337
        #   Release note complete - or failed
-
 
338
        #       Make the target PackageVersion ReadOnly
337
        #   Make the target PackageVersion ReadOnly
339
        #       Signal End of Package Processing - which will trigger blat
-
 
340
        #
-
 
341
        #   Do this even if we have a Release Note Failure
-
 
342
        #
338
        #
343
        runSudoCommand('make_readonly', 'dpkg_archive', $entry->{NAME},$entry->{VERSION});
339
        runSudoCommand('make_readonly', 'dpkg_archive', $entry->{NAME},$entry->{VERSION});
-
 
340
 
-
 
341
        #
-
 
342
        #   TarZip the package
-
 
343
        #   This will be used simplify transfering the package to dpkg_acrhive replicas
-
 
344
        #       
-
 
345
        runSudoCommand('make_tarzip', 'dpkg_archive', $entry->{NAME},$entry->{VERSION});
344
    }
346
    }
345
 
347
 
-
 
348
    #   Release note complete - or failed
-
 
349
    #       Signal End of Package Processing - which will trigger blat
-
 
350
    #   Do this even if we have a Release Note Failure
-
 
351
    #   
346
    #    make_release_changed 
352
    #    make_release_changed 
347
    #       archive=archive-path 
353
    #       archive=archive-path 
348
    #       pkg_name="package-name" 
354
    #       pkg_name="package-name" 
349
    #       pkg_version="package-version" 
355
    #       pkg_version="package-version" 
350
    #       rtag_id=release-tag-id 
356
    #       rtag_id=release-tag-id 
Line 357... Line 363...
357
    #   Note: The ReleasedPackagereport tool parses the make_released_changed entries
363
    #   Note: The ReleasedPackagereport tool parses the make_released_changed entries
358
    #         It requires quotes on the pkg_name and pkg_version for correct parsing
364
    #         It requires quotes on the pkg_name and pkg_version for correct parsing
359
    #
365
    #
360
    push @args, 'archive=dpkg_archive';
366
    push @args, 'archive=dpkg_archive';
361
    push @args, 'mode_id=3';
367
    push @args, 'mode_id=3';
362
    push @args, 'pkg_name="'    . $entry->{NAME} . '"';
368
    push @args, 'pkg_name="'    . $entry->{NAME}     . '"';
363
    push @args, 'pkg_version="' . $entry->{VERSION} . '"';
369
    push @args, 'pkg_version="' . $entry->{VERSION}  . '"';
364
    push @args, 'rtag_id='     . $entry->{RTAG_ID};
370
    push @args, 'rtag_id='      . $entry->{RTAG_ID};
365
    push @args, 'pkg_id='      . $entry->{PKG_ID};
371
    push @args, 'pkg_id='       . $entry->{PKG_ID};
366
    push @args, 'pv_id='       . $entry->{PV_ID};
372
    push @args, 'pv_id='        . $entry->{PV_ID};
367
    push @args, 'proj_id='     . $entry->{PROJ_ID};
373
    push @args, 'proj_id='      . $entry->{PROJ_ID};
368
 
374
 
369
    runSudoCommand('make_release_changed', @args);
375
    runSudoCommand('make_release_changed', @args);
370
 
376
 
371
    #
377
    #
372
    #   Email interested users
378
    #   Email interested users
Line 817... Line 823...
817
will process just the specified package. This is normally only used to test the operation 
823
will process just the specified package. This is normally only used to test the operation 
818
of the subsystem.
824
of the subsystem.
819
 
825
 
820
=item B<-age=nn>
826
=item B<-age=nn>
821
 
827
 
822
This option control the period of time period used in determing which packages to process. 
828
This option control the period of time period used in determining which packages to process. 
823
 
829
 
824
The number is in days. The default value is 2 days.
830
The number is in days. The default value is 2 days.
825
 
831
 
826
=item B<-keeptemp>
832
=item B<-keeptemp>
827
 
833
 
Line 839... Line 845...
839
 
845
 
840
=head1 DESCRIPTION
846
=head1 DESCRIPTION
841
 
847
 
842
This utility program is apart of the Package Release process. It is an interim solution.
848
This utility program is apart of the Package Release process. It is an interim solution.
843
 
849
 
844
The script is designed to be run as a cron jon on the dpkg_archive server.
850
The script is designed to be run as a cron job on the dpkg_archive server.
845
 
851
 
846
It will scan the Release Manager database for packages that have been release, but do 
852
It will scan the Release Manager database for packages that have been release, but do 
847
not yet have release notes. For each package it will then generate a Release Note by: 
853
not yet have release notes. For each package it will then generate a Release Note by: 
848
 
854
 
849
=over 4
855
=over 4
850
 
856
 
851
=item *
857
=item *
852
 
858
 
853
Invoke jats_get_releasenote_data to:
859
Invoke jats_get_releasenote_data to:
854
 
860
 
855
Extract relevent information from
861
Extract relevant information from
856
 
862
 
857
=over 4
863
=over 4
858
 
864
 
859
=item *
865
=item *
860
 
866
 
861
The Release Manager database
867
The Release Manager database
862
 
868
 
863
=item *
869
=item *
864
 
870
 
865
the ClearQuest database (now conatined within the Release Manager database)
871
the ClearQuest database (now contained within the Release Manager database)
866
 
872
 
867
=item *
873
=item *
868
 
874
 
869
the Jira Issue server 
875
the Jira Issue server 
870
 
876
 
Line 878... Line 884...
878
 
884
 
879
=over 4
885
=over 4
880
 
886
 
881
=item *
887
=item *
882
 
888
 
883
Process the the XML file created above, and package list info found within the new package. 
889
Process the XML file created above, and package list info found within the new package. 
884
 
890
 
885
If no package informationis found then the utility will create a package list, but this is 
891
If no package information is found then the utility will create a package list, but this is 
886
much slower than having it created by the package builder.
892
much slower than having it created by the package builder.
887
 
893
 
888
=item *
894
=item *
889
 
895
 
890
Create an XML file containing all the package information
896
Create an XML file containing all the package information
Line 908... Line 914...
908
Make the package read-only. This will trigger any post-install processing of the 
914
Make the package read-only. This will trigger any post-install processing of the 
909
package. This is only required for packages that form a part of the build system.
915
package. This is only required for packages that form a part of the build system.
910
 
916
 
911
=item *
917
=item *
912
 
918
 
-
 
919
Create a tar-zip of the package. This is stored within dpkg_archive and is available to other
-
 
920
tools to transfer the package as a single entity. The tarZip is only retained as long as it 
-
 
921
is needed by the other tools.
-
 
922
 
-
 
923
 
-
 
924
=item *
-
 
925
 
913
Flag that the package has been released. This may tigger the BLAT package file transfer process 
926
Flag that the package has been released. This may trigger the BLAT package file transfer process 
914
and the package will be transferred to remote sites.
927
and the package will be transferred to remote sites.
915
 
928
 
916
=item *
929
=item *
917
 
930
 
918
Determine the users that have registered interest in being informed when the package is released. 
931
Determine the users that have registered interest in being informed when the package is released.