So my flow as it stands now.

1) Do some work
2) Happy with work
3) Tag a release (v1.0.1 for example)
4) Create a docker image
5) Publish to kubernetes.

In jenkins, I've gotten 4 and 5 working very nicely in pipelines, but it'll 
either work manually, or on every commit. I remember in freestyle builds, 
there was a way to say "only include certain branches/tags". Is there 
something like this in pipeline yet?

Looking at https://issues.jenkins-ci.org/browse/JENKINS-34395 it seems like 
the work around is to do a filter in one grovy script, to notify another 
script.

So for now I'm doing

stage('checkout') {
            git credentialsId: '--credentials--', url: '---giturl---'
            versionStr = sh(returnStdout: true, script: 'git tag | sort 
-V').trim().split("\n")[0]
            sh "git checkout ${versionStr}"
}

Am I missing something? is there a better way of doing this?

Gavin

-- 
You received this message because you are subscribed to the Google Groups 
"Jenkins Users" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
To view this discussion on the web visit 
https://groups.google.com/d/msgid/jenkinsci-users/80a5f384-ae1e-4baf-9718-ff032d797a15%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

Reply via email to