|
|
Line 272: |
Line 272: |
| patch -p2 < ~/b128.patch | | patch -p2 < ~/b128.patch |
| </pre> | | </pre> |
|
| |
| === Buildbot ===
| |
|
| |
| === Install Buildbot ===
| |
| NOTE: This has to be reviewed since we don't even have a D drive to begin with.
| |
| <strike>
| |
| Install Buildbot using the following batch script. You will need to find a way to get this batch script onto the system. This installs buildbot into %mozillabuild%\buildbotve, using the version in the SET at the top. It gets Python packages from the puppet master specified in pkg_root. The final stanza will install the latest runslave.py at c:\runslave.py. You will need to enter the administrator password to do so.
| |
|
| |
| <pre><nowiki>
| |
| @echo off
| |
| SET version=0.8.4-pre-moz2
| |
|
| |
| REM find mozillabuild
| |
| SET mozillabuild=d:\mozilla-build
| |
| SET mozilladrive=d:
| |
| IF NOT EXIST %mozillabuild%\nul (
| |
| SET mozillabuild=c:\mozilla-build
| |
| SET mozilladrive=c:
| |
| )
| |
|
| |
| REM find python - some machines have python26, some have python25
| |
| SET pythondir=%mozillabuild%\python25\
| |
| SET pythondll=python25.dll
| |
| IF NOT EXIST %pythondir%\python.exe (
| |
| REM python26 isn't in a versioned directory for some reason
| |
| SET pythondir=%mozillabuild%\python
| |
| SET pythondll=python26.dll
| |
| )
| |
|
| |
| SET python=%pythondir%\python.exe
| |
| SET pkg_root=http://production-puppet.build.mozilla.org/production/python-packages
| |
| SET virtualenv=%mozillabuild%\buildbotve
| |
|
| |
| REM get set up
| |
| REM reset ERRORLEVEL
| |
| cmd /c "exit /b 0"
| |
| rmdir /s /q %virtualenv%
| |
| if ERRORLEVEL 1 exit /b 1
| |
| MKDIR %virtualenv%
| |
| if ERRORLEVEL 1 exit /b 1
| |
|
| |
| %mozilladrive%
| |
| cd %virtualenv%
| |
|
| |
|
| |
| REM On systems where Python is not installed systemwide, the python.exe in the virtualenv
| |
| REM will not be able to find PYTHON*.DLL, so we copy it there "manually"
| |
| MKDIR %virtualenv%\scripts
| |
| if ERRORLEVEL 1 exit /b 1
| |
|
| |
| COPY %pythondir%\%pythondll% %virtualenv%\scripts
| |
| if ERRORLEVEL 1 exit /b 1
| |
|
| |
|
| |
| REM get the prerequisites for a virtualenv
| |
| %mozillabuild%\wget\wget %pkg_root%/virtualenv.py
| |
| if ERRORLEVEL 1 exit /b 1
| |
|
| |
| %mozillabuild%\wget\wget %pkg_root%/pip-0.8.2.tar.gz
| |
| if ERRORLEVEL 1 exit /b 1
| |
|
| |
| %mozillabuild%\wget\wget %pkg_root%/distribute-0.6.14.tar.gz
| |
| if ERRORLEVEL 1 exit /b 1
| |
|
| |
|
| |
| REM create the virtualenv
| |
| %python% virtualenv.py --python=%python% --distribute %virtualenv%
| |
| if ERRORLEVEL 1 exit /b 1
| |
|
| |
|
| |
| REM populate it
| |
| .\scripts\pip install --no-deps --no-index --find-links=%pkg_root% zope.interface==3.6.1
| |
| if ERRORLEVEL 1 exit /b 1
| |
|
| |
| .\scripts\pip install --no-deps --no-index --find-links=%pkg_root% buildbot-slave==%version%
| |
| if ERRORLEVEL 1 exit /b 1
| |
|
| |
| .\scripts\pip install --no-deps --no-index --find-links=%pkg_root% buildbot==%version%
| |
| if ERRORLEVEL 1 exit /b 1
| |
|
| |
| REM note that this version of Twisted has been modified to not require a
| |
| REM compiler; see the puppet manifests for details
| |
| .\scripts\pip install --no-deps --no-index --find-links=%pkg_root% twisted==10.2.0
| |
| if ERRORLEVEL 1 exit /b 1
| |
|
| |
| .\scripts\pip install --no-deps --no-index --find-links=%pkg_root% simplejson==2.1.3
| |
| if ERRORLEVEL 1 exit /b 1
| |
|
| |
| runas /user:administrator "%mozillabuild%\wget\wget -OC:\runslave.py http://hg.mozilla.org/build/puppet-manifests/raw-file/tip/modules/buildslave/files/runslave.py"
| |
| if ERRORLEVEL 1 exit /b 1
| |
| </nowiki></pre>
| |
| </strike>
| |
|
| |
|
| === Startup scripts === | | === Startup scripts === |
Line 452: |
Line 360: |
| * Let's also remove restore point to free up space on C drive | | * Let's also remove restore point to free up space on C drive |
|
| |
|
| = Post-reimaging steps = | | == Buildbot 0.8.4 == |
| Until {{bug|683976}} is fixed we have to install buildbot manually.
| |
| * Install Buildbot and newer runslave.py (they are dependent on each other) | | * Install Buildbot and newer runslave.py (they are dependent on each other) |
| <pre> | | <pre> |
| # ssh Administrator@slave | | # ssh Administrator@slave |
| c:\mozilla-build\wget\wget.exe -O update-buildbot.bat https://bugzilla.mozilla.org/attachment.cgi?id=626953 | | c:\mozilla-build\wget\wget.exe -O update-buildbot.bat https://bugzilla.mozilla.org/attachment.cgi?id=627242 |
| update-buildbot.bat | | update-buildbot.bat |
| </pre> | | </pre> |
| * Install Python 2.7.3
| | == Python 2.7.3 == |
| <pre> | | <pre> |
| # ssh Administrator@slave | | # ssh Administrator@slave |
Line 466: |
Line 373: |
| msiexec /i python-2.7.3.msi /quiet /norestart /log python27_install.log TARGETDIR=c:\mozilla-build\python27 ALLUSERS=1 | | msiexec /i python-2.7.3.msi /quiet /norestart /log python27_install.log TARGETDIR=c:\mozilla-build\python27 ALLUSERS=1 |
| </pre> | | </pre> |
| * Install newer NSC.ini
| | == Newer NSC.ini == |
| <pre> | | <pre> |
| # ssh Administrator@slave | | # ssh Administrator@slave |
Line 472: |
Line 379: |
| c:\mozilla-build\wget\wget.exe -O NSC.ini http://hg.mozilla.org/build/opsi-package-sources/raw-file/3857d6f521f2/nagios/CLIENT_DATA/nsc.ini | | c:\mozilla-build\wget\wget.exe -O NSC.ini http://hg.mozilla.org/build/opsi-package-sources/raw-file/3857d6f521f2/nagios/CLIENT_DATA/nsc.ini |
| </pre> | | </pre> |
| | |
| | == Binscope == |
| | XXX: Todo |
| | |
| | = Post-reimaging steps = |
| | NOTE: We need to fix the auto-login. For now, it is manual |
| | * Click Start, Run and enter control userpasswords2 |
| | * "check" and "uncheck" the "Users must enter a user name and password to use this computer" option |
| | * click "OK" |
| | * a Window prompts you to choose the user and the password to auto-login with |