Search code examples
jenkinsxamarinxamarin.androidandroid-manifestxmlpoke

What is the right way to update android manifest with xbuild and Jenkins


In our environment we are building xamarin.android project and would like to pass $(build_number) variable to Jenkins build. Unfortunately Jenkins is building the project as if nothing was passed to the build workflow.

I tried to use XmlPoke which works fine for windows and doesn't work on mac at all.

os: mac os x jenkins & xamarin are the latest stable version

Please suggest.


Solution

  • There is no default solution/plugin for it if you are building under Mac OS Host. You have to create your own script/tool with input parameters to update xml attributes to a given value. Then use it with shell exec task.