Running Local Python script from external Jenkins Server

Jenkins setup: Jenkins 2.346

I am new to Jenkins and am looking for a tutorial or resource to help me out with something I am trying to build. We have a Jenkins server that I can build to but don’t have any administrative access to. I have a local python script that I am trying to run with Jenkins. This is 3 step process:

  1. Go to directory for the python script
  2. Activate the virtual environment
  3. Run the python script

The problem I am having after trying to create this is the Jenkin’s server doesn’t know or can’t access my local directory, so step 1 immediately fails with an access denied exception. Is there something I need to do first to get this to work? What is a good place to start looking for a resolution? Thanks in advance!

Most likely this is a problem with file/folder permissions.
The user under which the Jenkins job is running is not the same as when you try to do this locally outside of Jenkins.

ok, thanks! I was just informed that we need to go a different route anyway so this is a moot question. :slight_smile: