Community Tip - New to the community? Learn how to post a question and get help from PTC and industry experts! X
As part of Automation need to deploy below build.xml through Azure Devops release pipeline
but getting following error same has been tried in system as well but the result is same
Note : with windchill shell its working fine.
Buildfile: D:\test0719\build_S2_W6.xml
********************************************************************************
!+! STARTED @ Tue Jul 19 10:45:59 UTC 2022
********************************************************************************
[import] Didn't locate Windchill at or above build file's directory. Searching environment and System.properties...
[import] Using environment's wt_home variable
--------------------------------------------------------------------------------
!+! ENTERING Simple Change Installer[D:\test0719\build_S2_W6.xml]
--------------------------------------------------------------------------------
********************************************************************************
!+! FINISHED @ Tue Jul 19 10:45:59 UTC 2022
!+! Log: D:\ptc\Windchill_12.0\Windchill\buildlogs\0007-build_S2_W6.log
********************************************************************************
BUILD FAILED
D:\test0719\build_S2_W6.xml:24: The following error occurred while executing this line:
D:\test0719\ant\deployutils.xml:117: Cannot find D:\test0719\ant\${wt.home}\installer\wnc\wbr_actions.xml imported from
D:\test0719\ant\deployutils.xml
Total time: 0 seconds
The windchill shell sets some environment variables. You need to call first
D:\ptc\Windchill_12.0\Windchill\bin\windchill2.bat -setenv
afterwards try again
Thanks for taking time to respond but can you please elaborate this with example so i can use in Azure Devops CICD to process further.
After hitting the command I'm getting below error
D:\ptc\Windchill_12.0\Windchill\bin\windchill2.bat -setenv
unrecognized option: -setenv
and it will helpful to me if you have any other alternative to configure deployment through Azure Devops.
Thanks in advance.
You can check out this thread. Ben used to work for us and got it up and running in Azure devops. I know how to use it and can kind of follow it, but i cant explain how it works.
https://community.ptc.com/t5/Windchill/Anyone-Managing-their-Windchill-Installation-with-Powershell/m-p/674296