Uploaded image for project: 'Jenkins'
  1. Jenkins
  2. JENKINS-58838

Browsers not launching through Jenkins

    XMLWordPrintable

    Details

    • Similar Issues:

      Description

      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.

        Attachments

          Activity

          iamsharathgangadhar Sharathkumar K G created issue -
          v2v Victor Martinez made changes -
          Field Original Value New Value
          Component/s jenkinslint-plugin [ 20644 ]
          v2v Victor Martinez made changes -
          Priority Major [ 3 ] Minor [ 4 ]
          v2v Victor Martinez made changes -
          Assignee Victor Martinez [ v2v ]
          iamsharathgangadhar Sharathkumar K G made changes -
          Status Open [ 1 ] In Progress [ 3 ]
          iamsharathgangadhar Sharathkumar K G made changes -
          Assignee Arun jose [ 0404 ]
          iamsharathgangadhar Sharathkumar K G made changes -
          Rank Ranked higher
          iamsharathgangadhar Sharathkumar K G made changes -
          Assignee Arun jose [ 0404 ] Sharathkumar K G [ iamsharathgangadhar ]
          iamsharathgangadhar Sharathkumar K G made changes -
          Assignee Sharathkumar K G [ iamsharathgangadhar ] Mohammed Asgar [ asgarma ]
          iamsharathgangadhar Sharathkumar K G made changes -
          Issue Type Task [ 3 ] Bug [ 1 ]
          iamsharathgangadhar Sharathkumar K G made changes -
          Assignee Mohammed Asgar [ asgarma ] Sharathkumar K G [ iamsharathgangadhar ]
          iamsharathgangadhar Sharathkumar K G made changes -
          Assignee Sharathkumar K G [ iamsharathgangadhar ]
          iamsharathgangadhar Sharathkumar K G made changes -
          Component/s envfile-plugin [ 16035 ]
          Component/s envinject-plugin [ 15893 ]
          Component/s environment-manager-tools-plugin [ 21463 ]
          Component/s jenkinswalldisplay [ 16045 ]
          iamsharathgangadhar Sharathkumar K G made changes -
          Status In Progress [ 3 ] Open [ 1 ]

            People

            Assignee:
            Unassigned Unassigned
            Reporter:
            iamsharathgangadhar Sharathkumar K G
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

              Dates

              Created:
              Updated: