0

in jenkins i have :

  sh 'ls ${workspace}'
  sh 'cd MVD/utils && python compareWhitelist.py ${workspace}/MVDZOS'

I want to pass the complete path into the python script because I am doing

os.walk(sys.argv[1])

in the python script, I am also printing out the sys.argv[1] but it is returning only "/MVDZOS". How can I get the complete path into the script?

mslavs
  • 33
  • 1
  • 1
  • 7

1 Answers1

1

Try using the Uppercase in quotes.

Ex:

sh 'ls ${workspace}'
sh "cd MVD/utils && python compareWhitelist.py ${WORKSPACE}/MVDZOS"
Rakesh
  • 81,458
  • 17
  • 76
  • 113