The Atlassian Community can help you and your team get more value out of Atlassian products and practices.
Dears
Bamboo server not complete build ans still in progress even the script task to run the batch script completed.Please advice
this is my script:
@echo off
REM ----- [ REQUEST ADMIN PRIVILEDGES :: DO NOT MODIFY THIS SECTION ] -----
:: BatchGotAdmin
::-------------------------------------
REM --> Check for permissions
>nul 2>&1 "%SYSTEMROOT%\system32\cacls.exe" "%SYSTEMROOT%\system32\config\system"
REM --> If error flag set, we do not have admin.
if '%errorlevel%' NEQ '0' (
echo Requesting administrative privileges...
goto UACPrompt
) else ( goto gotAdmin )
:UACPrompt
echo Set UAC = CreateObject^("Shell.Application"^) > "%temp%\getadmin.vbs"
set params = %*:"="
echo UAC.ShellExecute "cmd.exe", "/c %~s0 %params%", "", "runas", 1 >> "%temp%\getadmin.vbs"
"%temp%\getadmin.vbs"
del "%temp%\getadmin.vbs"
exit /B
:gotAdmin
pushd "%CD%"
CD /D "%~dp0"
::--------------------------------------
::ENTER YOUR CODE BELOW:
NET SESSION >nul 2>&1
IF %ERRORLEVEL% EQU 0 (
ECHO Administrator PRIVILEGES Detected!
ECHO ===========================================================
) ELSE (
echo WARNING : Administrator Privileges NOT Detected!
)
REM ----- [ REQUEST ADMIN PRIVILEDGES :: DO NOT MODIFY THIS SECTION ] -----
REM ----- [ ACTUAL CODE STARTS FROM HERE ] -----
@echo Installing [npm modules for tests]
@echo ===========================================================
call npm install
@echo Installing [selenium-standalone server]
@echo ===========================================================
call npm install selenium-standalone@latest -g
@echo Installing [gecko driver]
@echo ===========================================================
call npm install geckodriver -g
@echo Installing [chrome driver]
@echo ===========================================================
call selenium-standalone install --drivers.chrome.version=2.43 -g --drivers.chrome.baseURL=https://chromedriver.storage.googleapis.com
@echo Starting [Selenium-standalone server]
@echo ===========================================================
call selenium-standalone start
call exit 0;
Hi Jimmy
This is happening every time from this command "call selenium-standalone start ".. is there any way to start selenium in background in windows.
Regards
Raveendra
A little outside my realm of expertise, but a quick search on Google suggests that you should be able to pass a '--headless' argument to the chrome driver options, and that should run selenium-standalone as a background task.
I hope that helps!
-Jimmy
We know that many of you have been asking for Long Term Support versions for Bamboo, as managing large, complex instances can require plenty of lead time and planning to prepare for an upgrade. To ...