Trying to run the batch file below in the Jenkins [Project] workspace. As 
long as I'm logged onto the Jenkins server via RDT, I can successfully run 
this batch file from the DOS prompt.
I do copy this batch file and its ini file from the JENKINS_BATCH 
subdirectory to the workspace in the first step. Which works!
 
But the when I execute the Batch file as part of the Jenkins job I get the 
following Jenkins error. (Thinking it might be a rights issue!) 

Any Ideas?

Here's the Jenkins Console Output:

Started by user *David Knight* 
<http://kit-ssbuild:8080/jenkins/user/dknight>
Building in workspace C:\.jenkins\jobs\OLF.SmartSoft.Trunk.SS.test\workspace
[workspace] $ cmd /c call "C:\Program Files\Apache Software 
Foundation\Tomcat 8.0\temp\hudson3339909563271044373.bat"
 
C:\.jenkins\jobs\OLF.SmartSoft.Trunk.SS.test\workspace>XCOPY /Q /Y 
"C:\Jenkins\Batch Files"\TrunkBuildScripts\*.* 
6 File(s) copied
 
C:\.jenkins\jobs\OLF.SmartSoft.Trunk.SS.test\workspace>exit 0 
[workspace] $ cmd /c call "C:\Program Files\Apache Software 
Foundation\Tomcat 8.0\temp\hudson9078776090671038666.bat"
 
C:\.jenkins\jobs\OLF.SmartSoft.Trunk.SS.test\workspace>BootStrap2.bat
BootStrap from TFS failed - See BootstrapSS.log
Build step 'Execute Windows batch command' marked build as failure
Sending e-mails to: david.knight@###########.com
Finished: FAILURE

  
Here's the Batch File: 

@ECHO OFF
REM  Creating PBLs from TFS and Rebuilding
REM del bootstrapss.log
REM "C:\Program Files (x86)\TopWiz\Bootstrap\BootStrap.exe"  
.\BootstrapSS.ini
 
REM bootstrap log file.
SET BOOT_STRAP_LOG="..\bootstrapss.log"
  
IF EXIST %BOOT_STRAP_LOG% DEL %BOOT_STRAP_LOG%
 
"C:\Program Files (x86)\TopWiz\Bootstrap\BootStrap.exe"  .\BootstrapSS.ini
if errorlevel 1 goto BootStrapFailed
GOTO END
 
:BootStrapFailed
echo BootStrap from TFS failed - See BootstrapSS.log
GOTO END
 
:END

 
Here's the ini:

[Settings]
;DO NOT alter the next 8 lines
DeleteFiles=true
MigrateRebuild=false
Process=both
PBMajorVersion=12
PBMinorVersion=5
Provider=Microsoft Team Foundation Server MSSCCI Provider
UserID=OLF\SSBuild
AuxProject=http://tfs20102k8.olf.com:8080/tfs/development|KIT-SSBUILD|OLF\SSBuild
;Modify to point the the corresponding TFS project
Project=$/SMARTsoft/Trunk/SS
;modify path on next 3 lines to point to branch vesion folder
Output=C:\.jenkins\jobs\OLF.SmartSoft.Trunk.SS.test\workspace
Targetfile=C:\.jenkins\jobs\OLF.SmartSoft.Trunk.SS.test\workspace\smartsoft.pbt
LogFile=C:\.jenkins\jobs\OLF.SmartSoft.Trunk.SS.test\bootstrapSS.log
;modify path AND pbc name
Pbcfile=C:\.jenkins\jobs\OLF.SmartSoft.Trunk.SS.test\workspace\SMARTsoft_trunk.pbc

 TopWiz BootStrap Log:

7/27/2015 10:09:38 - Export/Import Started
7/27/2015 10:09:38 - Connecting to Microsoft Team Foundation Server MSSCCI 
Provider
7/27/2015 10:09:38 - Opening project $/SMARTsoft/Trunk/SS
7/27/2015 10:09:42 - SccOpenProject Failed: Nonspecific error.
7/27/2015 10:09:42 - Disconnecting from Microsoft Team Foundation Server 
MSSCCI Provider
7/27/2015 10:09:42 - Extract Complete
7/27/2015 10:09:42 - Export/Import Complete
7/27/2015 10:09:42 - Processing complete. Elapsed time was 4 seconds.

 
 

-- 
You received this message because you are subscribed to the Google Groups 
"Jenkins Users" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
To view this discussion on the web visit 
https://groups.google.com/d/msgid/jenkinsci-users/c38d2805-cab4-487a-93fd-9f7c43ac2c9a%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

Reply via email to