0

Using https://github.com/HazAT/badge I want to use xcode build version parameter and version parameter as parameters to the badge software:

badge --shield "Version-${version}-${buildversion}"

in the jenkins pipeline. Now which env parameters should I use in jenkins or how to extract the version parameters in either fastlane or jenkins pipeline?

I suppose this is about following variables: CFBundleVersion CFBundleShortVersionString

kol23
  • 1,498
  • 3
  • 16
  • 35

1 Answers1

0

You could use the get_version_number action, with the add_badge plugin. That would give you something like this:

version = get_version_number(target: "YOUR_APP")
add_badge(alpha:true, shield:version)
Francois Nadeau
  • 7,023
  • 2
  • 49
  • 58