You've been invited into the Kudos (beta program) private group. Chat with others in the program, or give feedback to Atlassian.
View groupJoin the community to find out what other Atlassian users are discussing, debating and creating.
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
I'm happy to announce that Bamboo 7.2 has been released and it’s overflowing with awesome new features. This will be the last major Server release before the launch of Bamboo DC. Bamboo logs We...
Connect with like-minded Atlassian users at free events near you!
Find an eventConnect with like-minded Atlassian users at free events near you!
Unfortunately there are no Community Events near you at the moment.
Host an eventYou're one step closer to meeting fellow Atlassian users at your local event. Learn more about Community Events