Home | History | Annotate | Download | only in scripts_bugzilla
      1 <?xml version="1.0"?>
      2 
      3 <project name="Update Bug State" default="updateBugState">
      4 
      5 	<taskdef name="UpdateBugState" 
      6 	  classname="org.eclipse.releng.services.bugzilla.UpdateBugStateTask" 
      7 	  classpath="../bugTools.jar"/>
      8 
      9 	<!-- 1. Define property file -->
     10 	<target name="init">
     11 		<property file="../properties/UpdateBugStateTask.properties"/>
     12 	</target>
     13 
     14 	<!-- 2. Update Bugzilla state for specific criteria -->
     15 	<target name="updateBugState" depends="init" description="Update Bugzilla state for specific criteria">
     16 		<!--
     17 		UpdateBugStateTask takes a few parameters, some are required and some are optional, see below.
     18 		milestone, product and resolution correspond to the Bugzilla items of the same name
     19 
     20 		login - required, your userid for Bugzilla (can be generated by UpdateBugStateTask.sh)
     21 
     22 		logincookie - required, your logincookie for Bugzilla (can be generated by UpdateBugStateTask.sh)
     23 
     24 		status - required, only query for bugs in this state
     25 		one of UNCONFIRMED, NEW, ASSIGNED, or REOPENED
     26 
     27 		bugList - optional, specify the list of bugs to update
     28 		a non-digit (space, comma, semicolon, etc) delimited list of integers corresponding to Bugzilla bugIDs
     29 		if you specify this, you cannot specify milestone or product
     30 
     31 		product - required (if no bugList), only query for bugs on this product
     32 		this cargument annot be combined with bugList
     33 
     34 		buildAlias - optional label, the task adds a comment to Bugzilla of the form
     35 		"Fixed in $buildAlias ($buildID).", otherwise uses buildID or just "Fixed in latest build."
     36 
     37 		buildID - optional label, the task adds a comment to Bugzilla of the form
     38 		"Fixed in $buildAlias ($buildID).", otherwise uses buildAlias or just "Fixed in latest build."
     39 		of the format YYYYMMDDHHMM, [IMNRS]YYYYMMDDHHMM, [IMNRS]-YYYYMMDDHHMM
     40 		YYYYMMDD-HHMM, [IMNRS]YYYYMMDD-HHMM, or [IMNRS]-YYYYMMDD-HHMM
     41 
     42 		endDate - optional, only query for bugs last updated before this timestamp
     43 		(that is, bugs after this timestamp will be ignored). Must be in the form yyyymmddHHMM or yyyymmdd0000.
     44 		this argument cannot be combined with bugList
     45 
     46 		milestone - optional, only query for bugs that have this milestone
     47 		this argument cannot be combined with bugList
     48 
     49 		resolution - optional, this is what the bug's new state will be
     50 		one of FIXED, INVALID, WONTFIX, LATER, REMIND, or WORKSFORME (default: FIXED)
     51 
     52 		debug - optional, use this to control task verbosity
     53 		0 - only print a message if the task needs to abort
     54 		1 - show progress (and errors, if any) (default)
     55 		2 - maximum verbosity, probably only useful if something goes wrong
     56 		values < 0 are equivalent to 0
     57 		values > 2 are equivalent to 2
     58 		
     59 		Examples: -->
     60 		
     61 		<!--
     62 		1. find all bugs last updated before 2006/06/01 17:38 from product EMF in the ASSIGNED state;
     63 		   move to FIXED using buildID S200606051102 and buildAlias 2.2.0RC7. Comment will be:
     64 		     "Fixed in 2.2.0RC7 (S200606051102)."
     65 		-->
     66 		<UpdateBugState login="${login}" logincookie="${logincookie}" 
     67 			status="ASSIGNED" product="EMF" endDate="200606011738" 
     68 			resolution="FIXED" buildID="S200606051102" buildAlias="2.2.0RC7" 
     69 		/>
     70 		
     71 		<!--
     72 		2. find all bugs from product EMF targetted for milestone "2.2" which are in the ASSIGNED state; 
     73 		   move to FIXED. Comment will be:
     74 			 "Fixed in latest build."
     75 		-->
     76 		<UpdateBugState debug="2" login="${login}" logincookie="${logincookie}"
     77               status="ASSIGNED" product="EMF"
     78 				resolution="FIXED" milestone="2.2"
     79         />
     80 		
     81 		<!--
     82 		3. find all bugs in given list (131811 144877 144890 144989) which are still in the ASSIGNED state 
     83 		   (to avoid duplicate updates); move to FIXED using buildID I200606051102. Comment will be:
     84 		     "Fixed in I200606051102."
     85 		-->
     86 		<UpdateBugState login="${login}" logincookie="${logincookie}" 
     87 			status="ASSIGNED" bugList="131811 144877 144890 144989" 
     88 			resolution="FIXED" buildID="S200606051102" 
     89 		/> 
     90 		
     91 	</target>
     92 </project>