From 31b56c75e10b69518431ad63fd3f6d25e7f06595 Mon Sep 17 00:00:00 2001 From: Arnike Date: Tue, 27 Dec 2022 09:39:15 +0300 Subject: [PATCH] jenkinsfile content replace --- Jenkinsfile | 2 ++ 1 file changed, 2 insertions(+) diff --git a/Jenkinsfile b/Jenkinsfile index ac41168..6ed9b0c 100644 --- a/Jenkinsfile +++ b/Jenkinsfile @@ -8,6 +8,8 @@ pipeline { sh '''cd classlib dotnet build --no-incremental --force --configuration Release dotnet publish -c Release''' + + contentReplace(configs: [fileContentReplaceConfig(configs: [fileContentReplaceItemConfig(replace: 'ModuleVersion = \'2.0.$BUILD_NUMBER\'', search: 'ModuleVersion = \'2.0\'')], fileEncoding: 'UTF-8', filePath: 'ps.ipam.psd1')]) } } }