Pipeline stage declaration change

Now declared pipelineStages in a wider scope given its potential for wide usage. Relates to https://github.com/sbt/sbt/issues/1302.