i set the command like this without environment variables such as 
%WORKSPACE%,

the path is using 

C:\Users\LAB-User2\Documents\GitHub\testing005
C:\Users\LAB-User2\Documents\GitHub\testing005\.git
C:\Users\LAB-User2\Documents\GitHub\testing005\Database3
C:\Users\LAB-User2\Documents\GitHub\testing005\Database3\Database3.sln
C:\Users\LAB-User2\Documents\GitHub\testing005\Database3\Database3\sp_insert_rpt_criteria.sql


1. Execute window batch

echo 'Copying Adventure Works Solution to Jenkins workspace...'
xcopy /s /E /H /Y /R 
"C:\Users\LAB-User2\Documents\GitHub\testing005\Database3\Database3" 
"C:\Program Files (x86)\Jenkins\jobs\testing003\workspace" 
 
echo 'Deleting artifacts from previous builds...'
del 
"C:\Users\LAB-User2\Documents\GitHub\testing005\Database3\Database3\*_publish.zip"
 
/F /Q


2. MSBUILD

C:\Windows\Microsoft.NET\Framework\v4.0.30319\MSBuild.exe

"C:\Users\LAB-User2\Documents\GitHub\testing005\Database3\Database3\Database3.sqlproj"
 
/p:Configuration=Database3 /p:Platform=AnyCPU /t:Build;Publish 
/p:SqlPublishProfilePath='C:\Users\LAB-User2\Documents\GitHub\testing005\Database3\Database3\Database3.publish.xml'
 
/p:UpdateDatabase=False

-- 
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].
For more options, visit https://groups.google.com/groups/opt_out.

Reply via email to