added files

This commit is contained in:
Your Name
2026-08-26 02:02:24 +05:30
parent 58ee8a276a
commit 3419cfba0c
200 changed files with 22132 additions and 0 deletions
+16
View File
@@ -0,0 +1,16 @@
def call(String description) {
// Initialize or increment a global step counter kept in the environment
def current = (env.STEP_COUNTER ?: '0').trim()
int next
try {
next = current.toInteger() + 1
} catch (Throwable ignored) {
next = 1
}
env.STEP_COUNTER = next.toString()
// Derive environment name from common env vars
def stageEnv = env.cicd_environment ?: env.INFRA_ENV ?: env.BUILD_ENV ?: env.ENVIRONMENT ?: 'ftr'
return "[${stageEnv}] [Step ${env.STEP_COUNTER}] ${description}"
}