stashnotifier-plugin icon indicating copy to clipboard operation
stashnotifier-plugin copied to clipboard

Cannot override projectKey in Jenkinsfile

Open alexander-svendsen opened this issue 8 years ago • 2 comments

Hi,

There seems to be a bug in the latest release where the code:

    step([$class: 'StashNotifier',
          projectKey: 'test'])
}

Does not override the projectKey. It only submitts the default build key.

When looking into the code i wonder if this happens because the build pipeline that the Jenkinsfile belongs to is not of the type AbstractBuild.

alexander-svendsen avatar Jan 26 '17 12:01 alexander-svendsen

If forgotten ] is a typo, then your considerations can be truth. TokenMacro seems work badly with pipelines and current code.

scaytrase avatar Jan 26 '17 18:01 scaytrase

Wobs, typo when pasting the code from the README in this example. Not the case in our Jenkinsfile

alexander-svendsen avatar Jan 26 '17 21:01 alexander-svendsen