Thank you Alex for your response. Yes, I am running a simple job (Freestyle Project) in following 2 ways. Unfortunately both ways are giving similar error.
-
First I am running simple job (Freestyle Project) with ‘Execute Windows batch Command’ in Build section and mentioning a batch script ‘simple.bat’ in command section of Build. Please note this script has a zowe jobs submit CLI command and echo command. This script runs fine on Windows cmd prompt and submits job on mainframe. But when I run it thru Jenkins I get below error.
“‘zowe’ is not recognized as an internal or external command,
operable program or batch file.
“submitted our job , JOB ID is” jobid
Build step ‘Execute Windows batch command’ marked build as failure
Finished: FAILURE” -
Second way is executing simple1.sh shell script in Build Section with ‘Execute Shell’ option. This shell script also has zowe CLI commands. For executing this shell on Windows, I used Cygwin (and gitbash also) command prompt. It is running fine on Cygwin terminal or gitbash terminal. Before executing this shell in Jenkins, I mentioned Shell path in Manage Jenkins–>Configure System–>Shell Executable to sh.exe in bin folder of cygwin. e.g. I mentioned ‘C:\cygwin64\bin\sh.exe’ this path in Manage Jenkins–>Configure System–>Shell Executable. After this when I ran shell in jenkins I received below error.
"+ ./simple1.sh
./simple1.sh: line 2: zowe: command not found
submitted our job , JOB ID is
Job completed in OUTPUT status. Final result of job:
./simple1.sh: line 12: zowe: command not found
./simple1.sh: line 13: zowe: command not found
./simple1.sh: line 14: zowe: command not found
Build step ‘Execute shell’ marked build as failure
Finished: FAILURE"
Hope this information helps you. Any help would be greatly appreciated.
Thank you-
Prasad