I fixedMy Maya batch file runs correctly and the script passed into it runs 
correctly when I run standalone without Jenkins but with Jenkins i

*This is my call to boot Maya:*
*"start "" "C:\Program Files\Autodesk\Maya%MAYA_VERSION%\bin\maya.exe" 
"-script" %TOOLSPATH%\standalone\sb_package_browser\execute.mel"*

*The console output from my Jenkins build is below:*
*C:\Program Files 
(x86)\Jenkins\workspace\publish_package_on_p4_check_in>start "" "C:\Program 
Files\Autodesk\Maya2017\bin\maya.exe" "-script" 
D:\p4sb\Trunk\ContentTools\asset_tools\DEV\standalone\sb_package_browser\execute.mel
 *



*C:\Program Files 
(x86)\Jenkins\workspace\publish_package_on_p4_check_in>exit 0 Process 
leaked file descriptors. See 
https://jenkins.io/redirect/troubleshooting/process-leaked-file-descriptors 
<https://jenkins.io/redirect/troubleshooting/process-leaked-file-descriptors> 
for more information POST BUILD TASK : SUCCESS END OF POST BUILD TASK : 0 
Finished: SUCCESS*

As you can see the process completes but Maya does not boot and the actual 
Maya process does not boot. I remember reading somewhere that you must set 
BUILD_ID=do not kill, however this has not been sucessful for me. 

I would assume that because I am trying to kick off an entirely new exe 
process Jenkins does not recognise that it needs to wait and simply falls 
through?

- Ben


On Monday, 14 August 2017 19:53:21 UTC+2, Benjam901 wrote:
>
> Yes I have usually been able to start Maya from command prompt our whole 
> system runs on this type of thing. I shall run a manual test with my newer 
> trimmed down jenkins boot and see what happens.
>
> - Ben
>
> On 14 August 2017 at 18:22, yury nedelin <[email protected]> wrote:
>
>> Can you start Maya from command prompt manually, without Jenkins? If not 
>> what is the error you get , if you get one?
>>
>>
>> On Aug 14, 2017 8:52 AM, "Benjam901" <[email protected]> wrote:
>>
>>> I found the file in question *"C:/Program Files 
>>> (x86)/Jenkins/jobs/publish_package_on_p4_check_in/builds/changelog.xml" 
>>> *and 
>>> have set up my process to iterate files in the changelists found in this 
>>> file, my process polls every minute checking for changes.
>>>
>>> I then run a post build job based on if Maya files are found in any 
>>> changelist I then exit with an exit code that triggers a post build script.
>>>
>>> My post build script runs a new batch process that is supposed to boot 
>>> Maya and pass in a script to run on boot but I cannot get Jenkins to run 
>>> Maya. It get to the execution line and just hangs until I kill the process, 
>>> is there a way to sucessfully boot a window exe like Maya through Jenkins? 
>>> I feel I may be missing something.
>>>
>>> Cheers,
>>>
>>> Ben
>>>
>>> On Saturday, 12 August 2017 03:31:13 UTC+2, ynedelin wrote:
>>>>
>>>> P4 will create an xml file with full sync log for each build. Look for 
>>>> it in Jenkins root. I will send you exact location later after I get in 
>>>> front of a computer if you can not find it.
>>>>
>>>> On Aug 11, 2017 5:31 AM, "Benjam901" <[email protected]> wrote:
>>>>
>>>> Hello all,
>>>>
>>>> I am having trouble with my Jenkins build at the moment. I have 
>>>> successfully set it up so that the P4 polling SCM is working correctly on 
>>>> my specified directories which is good but the snag is getting the 
>>>> changelists out into a separate build script.
>>>>
>>>> *Here is my proposed workflow:*
>>>> Poll every minute checking for changes in specified P4 dirs.
>>>> If changes are found run build and gather changelists.
>>>> Pass changelists to new build that runs python script to filter and run 
>>>> processes on files etc.
>>>>
>>>> *The snag:*
>>>> The image below shows the summary of changes, I would like to be able 
>>>> to get all changelist numbers and pass them to my python filtering script.
>>>> I have tried using P4_CHANGELIST in my console execution but it only 
>>>> returns the latest change not all three as the image below illustrates.
>>>>
>>>> Cheers,
>>>>
>>>> Ben
>>>>
>>>>
>>>> <https://lh3.googleusercontent.com/-cZ8KU5vbxFU/WY2jMgtWJ6I/AAAAAAAAD6c/pzho_YBMA1Y2rbouqK9cBSHC2nD5Co4PQCLcBGAs/s1600/jenkins.png>
>>>>
>>>> -- 
>>>> You received this message because you are subscribed to the Google 
>>>> Groups "Python Programming for Autodesk Maya" 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/python_inside_maya/1b05f7ba-5881-4794-8c9c-a8d02edbacd9%40googlegroups.com
>>>>  
>>>> <https://groups.google.com/d/msgid/python_inside_maya/1b05f7ba-5881-4794-8c9c-a8d02edbacd9%40googlegroups.com?utm_medium=email&utm_source=footer>
>>>> .
>>>> For more options, visit https://groups.google.com/d/optout.
>>>>
>>>>
>>>> -- 
>>> You received this message because you are subscribed to the Google 
>>> Groups "Python Programming for Autodesk Maya" 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/python_inside_maya/21e3fd7d-9a5a-44ff-96a9-7b5cd94c4860%40googlegroups.com
>>>  
>>> <https://groups.google.com/d/msgid/python_inside_maya/21e3fd7d-9a5a-44ff-96a9-7b5cd94c4860%40googlegroups.com?utm_medium=email&utm_source=footer>
>>> .
>>> For more options, visit https://groups.google.com/d/optout.
>>>
>> -- 
>> You received this message because you are subscribed to a topic in the 
>> Google Groups "Python Programming for Autodesk Maya" group.
>> To unsubscribe from this topic, visit 
>> https://groups.google.com/d/topic/python_inside_maya/eT12eQChWJo/unsubscribe
>> .
>> To unsubscribe from this group and all its topics, send an email to 
>> [email protected].
>> To view this discussion on the web visit 
>> https://groups.google.com/d/msgid/python_inside_maya/CACqGScj%2BLZJw3r2wEA7Wc1q5PZz24-AeTr4jDk4Ja8u1uTCE%3DQ%40mail.gmail.com
>>  
>> <https://groups.google.com/d/msgid/python_inside_maya/CACqGScj%2BLZJw3r2wEA7Wc1q5PZz24-AeTr4jDk4Ja8u1uTCE%3DQ%40mail.gmail.com?utm_medium=email&utm_source=footer>
>> .
>>
>> For more options, visit https://groups.google.com/d/optout.
>>
>
>
>
> -- 
>
> Tel - +46 76245 92 90 (Sweden)
> LinkedIn: http://www.linkedin.com/pub/ben-hearn/50/a64/33b
>

-- 
You received this message because you are subscribed to the Google Groups 
"Python Programming for Autodesk Maya" 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/python_inside_maya/98cd6c9d-d2e4-4aaa-bcdb-0a5da68dc7ec%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

Reply via email to