Skip to content

Commit d2d45b1

Browse files
committed
Ajuste Dockerfile-build
1 parent cc745a8 commit d2d45b1

File tree

2 files changed

+3
-3
lines changed

2 files changed

+3
-3
lines changed

jenkinsfile

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -25,12 +25,11 @@ podTemplate(
2525
nodeSelector: 'type=jenkins-worker',
2626
)
2727
{
28-
node('build-services') {
28+
node('build-java-nfe') {
2929
echo '*********************************************************Parametros************************************************************************'
3030
echo '*******************************************************************************************************************************************'
3131
echo "Ambiente: ${Ambiente}"
3232
echo "Branch: ${Branch}"
33-
3433
echo '*******************************************************************************************************************************************'
3534
echo '*******************************************************************************************************************************************'
3635

@@ -63,6 +62,7 @@ podTemplate(
6362
def mavenImageVersion = "1.3"
6463
sh label: '', script: "docker login -u ${DOCKER_HUB_USER} -p ${DOCKER_HUB_PASSWORD}"
6564
sh label: '', script: "docker build -f Dockerfile-build -t ${imagem_build}:${versao} . --build-arg mavenImage=${mavenImage} --build-arg mavenImageVersion=${mavenImageVersion} --build-arg nameSpace=${namespace} --build-arg DskipTests=${DskipTests} --build-arg nexusUser=${NEXUS_USER} --build-arg nexusPass=${NEXUS_PASSWORD} --network=host"
65+
sh label: '', script: "docker rmi ${imagem_build}:${versao} --force"
6666
}
6767
}
6868
}

pom-base.xml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@
33
<modelVersion>4.0.0</modelVersion>
44
<groupId>br.com.swconsultoria</groupId>
55
<artifactId>java-nfe</artifactId>
6-
<version>4.00.18-SNAPSHOT</version>
6+
<version>4.00.18-${namespace}-SNAPSHOT</version>
77
<name>Java_NFe</name>
88
<description>Api java para consumo do webService de nota fiscal eletronica</description>
99
<url>https://github.com/Samuel-Oliveira/Java_NFe</url>

0 commit comments

Comments
 (0)