Closed dmtumilovich closed 2 years ago
def tags = new HashSet<io.jenkins.plugins.jobtag.JobTag>() tags.add(new io.jenkins.plugins.jobtag.JobTag("tester")) properties([ [$class: 'io.jenkins.plugins.jobtag.JobTagPublisher', tags: tags] ])
even you can specify a color
def tags = new HashSet<io.jenkins.plugins.jobtag.JobTag>() def testertag = new io.jenkins.plugins.jobtag.JobTag("tester1") testertag.setColor("#DEA093") tags.add(testertag) properties([ [$class: 'io.jenkins.plugins.jobtag.JobTagPublisher', tags: tags] ])
@dmtumilovich
@nistal97 thanks a lot! That helped.
Hello,
Is there any option to define tags inside the Jenkinsfile, rather than in UI?
I tried this (that was suggested by snippet generator):
But it throws the following exception: