title: Execute a python script that is on my Git via Jenkins
body: <p>So I am new to Jenkins/Git. My question may be basic but please take time to answer.</p>
  
  <p>So I am trying a simple thing. I have a simple Python Script that I have pushed on git. This is it:</p>
  
  <pre><code>
  def about_me(your_name):
      print("The wise {} loves Python.".format(your_name))            
  
  def HW():
      print("Hello World!")
  
  def Both():
      HW()
      about_me("Ab")
  
  Both()
  F  = open(r"C:\Users\AMRABET\Documents\VSC\HW\a.txt", "a")
  F.write("ok\n")
  
  </code></pre>
  
  <p>No big deal. Just a console/file print. 
  I pushed it on <strong>master</strong> branch on my git.</p>
  
  <p>Next, I tried to execute it via Jenkins. After reading multiple topics on internet, I understood that actually Jenkins does not <strong>run</strong> the code. It only <strong>build</strong> it.</p>
  
  <p>So I did <strong>build</strong> it. I configured a connection between Jenkins and Git and I succeeeded. This is the output of the build:</p>
  
  <pre><code>
  Running as SYSTEM
  Building in workspace C:\Program Files (x86)\Jenkins\workspace\GitJob
  using credential 1f413199-4637-40b4-96b9-a06e1d5aab4c
   &gt; C:\Program Files\Git\bin\git.exe rev-parse --is-inside-work-tree # timeout=10
  Fetching changes from the remote Git repository
   &gt; C:\Program Files\Git\bin\git.exe config remote.origin.url https://github.com/MbtAbd/HelloWorld # timeout=10
  Fetching upstream changes from https://github.com/MbtAbd/HelloWorld
   &gt; C:\Program Files\Git\bin\git.exe --version # timeout=10
  using GIT_ASKPASS to set credentials 
   &gt; C:\Program Files\Git\bin\git.exe fetch --tags --force --progress https://github.com/MbtAbd/HelloWorld +refs/heads/*:refs/remotes/origin/*
   &gt; C:\Program Files\Git\bin\git.exe rev-parse "refs/remotes/origin/master^{commit}" # timeout=10
   &gt; C:\Program Files\Git\bin\git.exe rev-parse "refs/remotes/origin/origin/master^{commit}" # timeout=10
  Checking out Revision 34500678072eb8536821606367d6ecf329d344d9 (refs/remotes/origin/master)
   &gt; C:\Program Files\Git\bin\git.exe config core.sparsecheckout # timeout=10
   &gt; C:\Program Files\Git\bin\git.exe checkout -f 34500678072eb8536821606367d6ecf329d344d9
  Commit message: "Added the file writing stuff"
   &gt; C:\Program Files\Git\bin\git.exe rev-list --no-walk 34500678072eb8536821606367d6ecf329d344d9 # timeout=10
  Finished: SUCCESS
  
  </code></pre>
  
  <p>Can anyone please tell me how to <strong>run</strong> the result of the <strong>build</strong> via Jenkins? All other threads on StackOverflow suggest to execute a shell action ( <code>sh 'python script.py'</code> ) but in my case I don't really have the PY file.</p>
  
  <p>Any help is appreciated. Thank you community!</p>