Closed Bug 1352829 Opened 7 years ago Closed 7 years ago

It should be easier to do automated Windows builds using the Windows scheduler and MozillaBuild

Categories

(Firefox Build System :: MozillaBuild, task)

All
Windows
task
Not set
normal

Tracking

(Not tracked)

RESOLVED DUPLICATE of bug 1282629

People

(Reporter: wgianopoulos, Unassigned)

Details

For a while now I have been doing my automated Windows builds via the Windows task scheduler.  The only way I could figure out tom ake this work requires changes to the MozillaBuild start-shell scripts.

What I did was make the following change to start-sell.bat:

--- mozilla-build-orig/start-shell.bat	2016-03-29 13:25:10 -0400
+++ mozilla-build/start-shell.bat	2017-03-26 09:55:38 -0400
@@ -144,17 +144,21 @@
     SET LIB=!VCDIR!..\DIA SDK\lib\amd64;!LIB!
   )
 )
 
 cd "%USERPROFILE%"
 IF "%USE_MINTTY%" == "1" (
   START %MOZILLABUILD%msys\bin\mintty -e %MOZILLABUILD%msys\bin\console %MOZILLABUILD%msys\bin\bash --login
 ) ELSE (
-  %MOZILLABUILD%msys\bin\bash --login -i
+  IF "%*%" == "" (
+    %MOZILLABUILD%msys\bin\bash --login -i
+  ) ELSE (
+    %MOZILLABUILD%msys\bin\bash --login -i -c "%*"
+  )
 )
 EXIT /B
 
 :_QUIT
 ECHO MozillaBuild Install Directory: %MOZILLABUILD%
 IF DEFINED VCDIR (ECHO Visual C++ %MOZ_MSVCYEAR% Directory: !VCDIR!)
 IF DEFINED SDKDIR (ECHO Windows SDK Directory: !SDKDIR!)
 IF DEFINED TOOLCHAIN (ECHO Trying to use the MSVC %MOZ_MSVCYEAR% !TOOLCHAIN! toolchain.)


and then in each of the specific version start-shell scripts, change the line:

CALL start-shell.bat

to:

CALL start-shell.bat %*

These changes allow me to run things form the task scheduler by specifying the specific start-shell as the comand to run and  'sh <script-to-run> as a way to kick off the build.

I would like to suggest adding this feature to the official version because:

1.  It might be useful to others.
2.  It would make it easier for me to update to newer MozillaBuild versions.

Of course, fell free to tell me I am being dumb and there is an easy way to do this without modifying the scripts.
Isn't this a dupe of bug 1282629?
Why yes it is.  I had forgotten I had already submitted this.
Status: NEW → RESOLVED
Closed: 7 years ago
Resolution: --- → DUPLICATE
Product: mozilla.org → Firefox Build System
You need to log in before you can comment on or make changes to this bug.