I am using a Jenkins pipeline script but am having trouble getting the tag. I realise you cant use the when{ buildingTag() } inside the post{} section. Is there an alternative for this ?
code I would like to write
pipeline {
  ...
  post {
    success {
      when {
        branch 'master'
        not { buildingTag() }
        ...
      }
    }
  }
}
