xbuild: not found Build step 'Execute shell' marked build as failure on Jenkin

I am working on Mac machine. I have installed jenkin with docker using following docker run -p 8080:8080 jenkinsci/blueocean

I am able to set up jenkin. I am trying to build Xamarin form project.
I have followed steps for building Xamarin.Ios project from following link: https://docs.microsoft.com/en-us/xamarin/tools/ci/jenkins-walkthrough

I have set Add MSBuild step through Global Tool Configuration option as:

/Library/Frameworks/Mono.framework/Versions/5.16.0/bin/xbuild.exe

For Xamarin.ios build, I have given following command through option: Add Build Step<Execute Shell:

xbuild /p:Configuration="Release" \
/p:Platform="iPhone" \
/p:IpaPackageDir="$HOME/Builds" \
/t:Build XamarinSampleCI.sln

Then I am trying to build project manually by click on button Build Now.
But build is getting failed getting following error:

  • xbuild '/p:Configuration=Release' ' '
    /tmp/jenkins1794719331410690610.sh: line 1: xbuild: not found
    Build step 'Execute shell' marked build as failure
    Finished: FAILURE

please help.
Thanks in advance.

Answers

Sign In or Register to comment.