jenkinsci / stashnotifier-plugin

A Jenkins Plugin to notify Atlassian Stash|Bitbucket of build results
https://plugins.jenkins.io/stashNotifier/
Other
163 stars 136 forks source link

Cannot override projectKey in Jenkinsfile #142

Open alexander-svendsen opened 7 years ago

alexander-svendsen commented 7 years ago

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.

scaytrase commented 7 years ago

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

alexander-svendsen commented 7 years ago

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