[JIRA] (JENKINS-58838) Browsers not launching through Jenkins

0 views
Skip to first unread message

sgangadh@easi.com (JIRA)

unread,
Aug 7, 2019, 1:03:02 AM8/7/19
to jenkinsc...@googlegroups.com
Sharathkumar K G created an issue
 
Jenkins / Task JENKINS-58838
Browsers not launching through Jenkins
Issue Type: Task Task
Assignee: Victor Martinez
Components: jenkinslint-plugin, jenkinswalldisplay
Created: 2019-08-07 05:02
Environment: Jenkins, python
Labels: plugin jenkins python trigger browser
Priority: Major Major
Reporter: Sharathkumar K G

We are experiencing an issue when running Python Script via Jenkins, the browsers refuse to open up the URL, however, when we run them manually, then it works.

Pre Requirement:
Firstly, Need to create a project in Jenkins.
Next, In the project configuration-> Build section need to add below details.
For example:-
cd <Python_Script_Folder_Path>
python <Python_File_Name>.py

My Python Sample Script:
import webbrowser
import subprocess
mycmd = r'start chrome /new-tab {}'.format("https://outlook.office.com")
n2 = subprocess.Popen(mycmd, shell=True, stdin=subprocess.PIPE, stdout=subprocess.PIPE)

post-execution process:
Firstly, go to the Jenkins project and click on Build Now option.

Expected Result:
Default browser should be open along with given URL.

Issue:
The script is running successfully but browser not opening.

Note: If you run python script via cmd prompt or any IDE works perfectly.

Add Comment Add Comment
 
This message was sent by Atlassian Jira (v7.11.2#711002-sha1:fdc329d)

VictorMartinezRubio@gmail.com (JIRA)

unread,
Aug 7, 2019, 6:09:02 AM8/7/19
to jenkinsc...@googlegroups.com
Victor Martinez commented on Task JENKINS-58838
 
Re: Browsers not launching through Jenkins

I'll change the component as this is not regarding the jenkins lint plugin and also I'll unassign myself.

Besides, I'd say based on the information you just provided, this is an environmental issue which might be regarding how the agent has been setup, bear in mind the agents are not launched in an interactive mode and any spawn processes from the build might not be tracked neither. See the below references in case they help

https://wiki.jenkins.io/display/JENKINS/Spawning+processes+from+build

https://support.cloudbees.com/hc/en-us/articles/229724088-How-to-set-up-a-Jenkins-agent-to-have-the-same-path-as-the-user-when-connected-via-Remote-Desktop-

 

Other than that, I'm afraid I cannot allocate any time to do any further analysis

VictorMartinezRubio@gmail.com (JIRA)

unread,
Aug 7, 2019, 6:10:03 AM8/7/19
to jenkinsc...@googlegroups.com
Victor Martinez updated an issue
 
Change By: Victor Martinez
Component/s: jenkinslint-plugin

VictorMartinezRubio@gmail.com (JIRA)

unread,
Aug 7, 2019, 6:10:04 AM8/7/19
to jenkinsc...@googlegroups.com
Victor Martinez assigned an issue to Unassigned
Change By: Victor Martinez
Assignee: Victor Martinez

VictorMartinezRubio@gmail.com (JIRA)

unread,
Aug 7, 2019, 6:10:04 AM8/7/19
to jenkinsc...@googlegroups.com

sgangadh@easi.com (JIRA)

unread,
Aug 12, 2019, 8:21:02 AM8/12/19
to jenkinsc...@googlegroups.com
Sharathkumar K G started work on Task JENKINS-58838
 
Change By: Sharathkumar K G
Status: Open In Progress

sgangadh@easi.com (JIRA)

unread,
Aug 12, 2019, 8:23:04 AM8/12/19
to jenkinsc...@googlegroups.com

sgangadh@easi.com (JIRA)

unread,
Aug 12, 2019, 8:25:03 AM8/12/19
to jenkinsc...@googlegroups.com
Sharathkumar K G assigned an issue to Mohammed Asgar
Change By: Sharathkumar K G
Assignee: Sharathkumar K G Mohammed Asgar

sgangadh@easi.com (JIRA)

unread,
Aug 12, 2019, 8:25:03 AM8/12/19
to jenkinsc...@googlegroups.com
Sharathkumar K G assigned an issue to Sharathkumar K G
Change By: Sharathkumar K G
Assignee: Arun jose Sharathkumar K G

sgangadh@easi.com (JIRA)

unread,
Aug 12, 2019, 8:43:02 AM8/12/19
to jenkinsc...@googlegroups.com

sgangadh@easi.com (JIRA)

unread,
Aug 12, 2019, 8:43:02 AM8/12/19
to jenkinsc...@googlegroups.com
Sharathkumar K G assigned an issue to Sharathkumar K G
Change By: Sharathkumar K G
Assignee: Mohammed Asgar Sharathkumar K G

sgangadh@easi.com (JIRA)

unread,
Aug 12, 2019, 8:43:03 AM8/12/19
to jenkinsc...@googlegroups.com
Sharathkumar K G assigned an issue to Unassigned
Change By: Sharathkumar K G
Assignee: Sharathkumar K G

sgangadh@easi.com (JIRA)

unread,
Aug 13, 2019, 1:57:02 AM8/13/19
to jenkinsc...@googlegroups.com
Sharathkumar K G commented on Bug JENKINS-58838
 
Re: Browsers not launching through Jenkins

According to Victor Martinez, this is an environmental issue which might be regarding how the agent has been set up, bear in mind the agents are not launched in an interactive mode and any spawn processes from the build might not be tracked either.
kindly suggest me regarding this.

sgangadh@easi.com (JIRA)

unread,
Aug 14, 2019, 12:10:03 AM8/14/19
to jenkinsc...@googlegroups.com
Sharathkumar K G updated an issue
Change By: Sharathkumar K G
Component/s: envfile-plugin
Component/s: envinject-plugin
Component/s: environment-manager-tools-plugin
Component/s: jenkinswalldisplay

sgangadh@easi.com (JIRA)

unread,
Aug 14, 2019, 12:11:02 AM8/14/19
to jenkinsc...@googlegroups.com
Sharathkumar K G stopped work on Bug JENKINS-58838
 
Change By: Sharathkumar K G
Status: In Progress Open
Reply all
Reply to author
Forward
0 new messages