feat: updated readme
This commit is contained in:
parent
b863207f5c
commit
a6d885b038
27
README.md
Normal file
27
README.md
Normal file
@ -0,0 +1,27 @@
|
|||||||
|
## Examlpe usage in pipeline
|
||||||
|
|
||||||
|
```groovy
|
||||||
|
@Library('semantic@main') _
|
||||||
|
|
||||||
|
podTemplate(containers: [
|
||||||
|
...
|
||||||
|
semanticGetContainerTemplate(),
|
||||||
|
]) {
|
||||||
|
...
|
||||||
|
// Somewhere in the middle of stages
|
||||||
|
def VERSION
|
||||||
|
if (!PULL_REQUEST) {
|
||||||
|
helpers.withGiteaCreds("GitBackendCreds", "git-tool") {
|
||||||
|
semantic.semantic(
|
||||||
|
stageName: "versioning",
|
||||||
|
giteaTokenCredId: "Gitea-releases",
|
||||||
|
giteaCredId: "GitBackendCreds",
|
||||||
|
giteaUrl: "${env.GIT_SCHEME}${env.GIT_HOST}",
|
||||||
|
currentBranch: BRANCH,
|
||||||
|
devBranch: "develop",
|
||||||
|
)
|
||||||
|
}
|
||||||
|
VERSION = semantic.semanticGetVersion()
|
||||||
|
}
|
||||||
|
}
|
||||||
|
```
|
||||||
Loading…
x
Reference in New Issue
Block a user