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

How to run the Jenkins with the admin rights from cmd in system startup?

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Unresolved
    • Icon: Major Major
    • core
    • None
    • Windows server 2016

      I need to run the Jenkins from cmd because of UI Selenium tests and I need to start the Jenkins as administrator. (because of running scripts from jenkins e.g. for start and stop tomcat)

      I have .bat file with this content:

      java -jar ...\jenkins.war

      which starts the Jenkins.

      I have tried these options:

      Make shortcut.ink of this .bat file and setup it as administrator, but .ink files cant be started in system startup from startup folder.
      run this .bat file from windows scheduler, but despite the fact that I have set the priority 4, the Jenkins runs terribly slowly.
      The question is simple, how to start the .bat file from shortcut folder with full admin rights without using windows services or windows scheduler? The Jenkins is running on Windows server 2016.

      Thanks for any answer.

            Unassigned Unassigned
            altair Josef Melicharek
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

              Created:
              Updated: