I have an upstream job that passes
COPY_FROM_BUILD parameter containing the number of upstream job build (dummy name, but good enough for developers to understand what's happening...)In downstream job I tried to use
nextBuildNumber($COPY_FROM_BUILD)
and when creating the job my seed job complains
ERROR: (seed_leia.groovy, line 224) No such property: $COPY_FROM_BUILD for class: javaposse.jobdsl.dsl.helpers.properties.PropertiesContext
Either I'm doing something really stupid or nextBuildNumber won't work with upstream parameter... any idea anyone?
Build name setter won't be a good enough solution since I'm passing build namber, not name, to another tool I can't rally change :/