Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

add pipeline traceability data #4

Merged
merged 4 commits into from
Feb 27, 2024
Merged
Changes from 2 commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
18 changes: 18 additions & 0 deletions tests/e2e/Jenkinsfile
Original file line number Diff line number Diff line change
Expand Up @@ -15,9 +15,27 @@ pipeline {
environment {
pipeline_report_dir = "pipeline_report2TG"
tgAuthKey = credentials('TG_authkey_test_report_upload')
PRODUCT_NAME = "testguide_report_generator_python"
TEST_LEVEL = "system"
}

stages {
stage('Set Product Version') {
steps {
script {
pyprojectContent = readFile 'pyproject.toml'
// This pattern matches versions like "1.0", "1.1.0", "1.1.0-beta", etc.
pattern = ~'version\\s*=\\s*"([\\d]+(?:\\.[\\d]+)*(?:-\\w+)?)'
ErikRehmTT marked this conversation as resolved.
Show resolved Hide resolved
matcher = pattern.matcher(pyprojectContent)
if (matcher.find()) {
env.PRODUCT_VERSION = matcher.group(1)
echo "Product Version set to: ${env.PRODUCT_VERSION}"
} else {
error "Version not found in pyproject.toml"
}
}
}
}
stage ('Docker Build') {
steps {
bat """
Expand Down
Loading