Construção de tags

master
Fabio Faria 2023-03-23 18:29:57 -03:00
parent 3eb66bb952
commit 1a2d2bdbac
1 changed files with 4 additions and 3 deletions

View File

@ -43,7 +43,7 @@ def gitCheckout(branch_name, url_name) {
SCM = checkout([
$class: 'GitSCM',
branches: [[name: "*/${branch_name}"]],
branches: [[name: "${branch_name}"]],
doGenerateSubmoduleConfigurations: false,
extensions: [[$class: 'AuthorInChangelog']],
submoduleCfg: [],
@ -63,6 +63,7 @@ def verificaTicket(mensagem) {
//======================================================================================================
@NonCPS
String getChangedFilesList() {
changedFiles = ""
for (changeLogSet in currentBuild.changeSets) {
for (entry in changeLogSet.getItems()) {
@ -117,7 +118,7 @@ pipeline {
echo "M2_HOME = ${M2_HOME}"
'''
echo "VERSÃO: @${env.BUILD_TIMESTAMP_VERSAO}#${env.BUILD_NUMBER}"
echo "parametro ${GIT} "
echo "parametro ${tagName} "
}
}
@ -125,7 +126,7 @@ pipeline {
steps {
script {
try {
gitCheckout('master', 'http://18.235.188.113:3000/rjconsultores/ventaBoletosAdm.git')
gitCheckout(tagName, 'http://18.235.188.113:3000/rjconsultores/ventaBoletosAdm.git')
} catch (err) {
echo err.getMessage()
}