nomad-cli / shenzhen

CLI for Building & Distributing iOS Apps (.ipa Files)
MIT License
4.65k stars 493 forks source link

ipa command not found in Jenkins #335

Closed superchun closed 3 years ago

superchun commented 7 years ago

when I install shenzhen, it's can work in iTermal, but in Jenkins, when I exectue shell, it's not work, tip: ipa comand not found, what's problem?

benjamingarcia commented 7 years ago

Hye! On Jenkins :

For Exemple This is my shell script executed by Jenkins:

gem install pkg-config
gem install nokogiri -- --use-system-libraries --with-xslt-dir=/usr/include/libxslt --with-xml2-include=/usr/include/libxml2 --with-xml2-lib=/usr/include/libxml2/libxml
gem install shenzhen
ipa build

and it works fine. My next step is to use it in pipeline multibranch 😉

benjamingarcia commented 7 years ago

Hye!

here my Jenkinsfile for pipeline 🎉 🤘🏻

maventalker commented 7 years ago

follow the steps below like this

1\jenkins system configuration 2\gloabl properties ->Environment variables, add key/value.key=PATH,

3\open terminal ,input 'echo $PATH' get the path value and input the configuration