Daniel Weissmall 2e9948e31f
All checks were successful
Run tsc — Successful
Run lint — Successful
Run tests — Successful
Unit Tests — Successful
E2E Tests — Successful
lint — Successful
Update vars/semantic.groovy
2026-09-21 13:27:13 +00:00
2026-09-21 13:27:13 +00:00
2026-07-16 15:08:53 +04:00
2025-11-05 16:31:10 +03:00

Examlpe usage in pipeline

@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()
    }
}
Description
!!! Warning !!! I think this library won't be just semantic one but whole library with all Jenkins tools we use. That's why there can be functions from different fields not just semantic ones
Readme 57 KiB
Languages
Groovy 47.1%
JavaScript 42.5%
Nix 10.4%