Merge "Set GERRIT_REFSPEC defaults for Gerrit Trigger jobs"
[releng/builder.git] / scripts / jjb-init-project.py
index a5df316dac840145fcdef7abb28d57dc2aebe81d..57ad0ceddc0c6aba7de02d1c12657eca19b364b2 100644 (file)
@@ -85,9 +85,11 @@ for stream, options in streams.items():
         str_streams += "                - %s\n" % jdk.strip()
 
     # Disable autorelease validate job unless project is participating
-    # in autorelease
-    str_streams += "            autorelease: %s\n" % options.get(
-        "autorelease", False)
+    # in autorelease, JJB does not allow flipping a boolean so we have to
+    # flip it here via not operator since the JJB configuration for disabling
+    # a Jenkins Job is "disabled: bool".
+    str_streams += "            disable_autorelease: %s\n" % (not options.get(
+        "autorelease", False))
 
 ###############
 # Handle JDKS #