Closed Bug 1282629 Opened 9 years ago Closed 8 years ago

An enhancement to make it easier to do windows build via task scheduler

Categories

(Firefox Build System :: MozillaBuild, task)

x86_64
Windows
task
Not set
normal

Tracking

(Not tracked)

RESOLVED FIXED

People

(Reporter: wgianopoulos, Assigned: wgianopoulos)

References

Details

Attachments

(1 file, 1 obsolete file)

I have been doing Windows builds via the task scheduler for a while now. to make this work I am making a trivial mod to mozilla build start-msvc scripts. It is kind of a pain to do this at each update to Mozilla build it would be nice if this (or something better) could be incorporated into the real builds.
The changes I made are in start-shell.bat to change the part at the end to: cd "%USERPROFILE%" IF "%USE_MINTTY%" == "1" ( START %MOZILLABUILD%msys\bin\mintty -e %MOZILLABUILD%msys\bin\console %MOZILLABUILD%msys\bin\bash --login ) ELSE ( 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.) ECHO. ECHO %ERROR% ECHO. PAUSE EXIT /B and then to change each of the start-shell msvcxxx.bat to alter the: CALL start-shell.bat to be: CALL start-shell.bat %* This allows me to run things under the start-shell-msvcxxx.bat scripts to run a shell script. Thus permitting me to run automated builds under the windows task scheduler.
Sure, why not. Given that start-shell-msvc*.bat no longer exist, can you confirm that the start-shell.bat changes by themselves are sufficient?
Flags: needinfo?(wgianopoulos)
Attached patch proposed patch (obsolete) — Splinter Review
Bill's proposal in patch form.
Assignee: nobody → wgianopoulos
Attached patch proposed patchSplinter Review
Accidentally removed a line I didn't mean to there.
Attachment #8870656 - Attachment is obsolete: true
The patch looks great to me!
Flags: needinfo?(wgianopoulos)
Pushed by ryanvm@gmail.com: https://hg.mozilla.org/mozilla-build/rev/4267e6be09d3 Allow start-shell.bat to send additional args to bash on startup. r=RyanVM
Status: NEW → RESOLVED
Closed: 8 years ago
Resolution: --- → FIXED
Product: mozilla.org → Firefox Build System
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Created:
Updated:
Size: