The step is trying to parse the first output for version name and the second for version code. Instead, it should be parsing the last output for version code and one before the last for version name.
This is an issue when for example default config is printing something also
defaultConfig {
...
println "Build started"
}
the output will be:
Build started
> Task :app:printVersion
0.0.1-a2eb417e
1
Step will put Build as version name and started as version code, instead of 0.0.1-a2eb417e and 1
The step is trying to parse the first output for version name and the second for version code. Instead, it should be parsing the last output for version code and one before the last for version name.
This is an issue when for example default config is printing something also
the output will be:
Step will put
Build
as version name andstarted
as version code, instead of0.0.1-a2eb417e
and1