Commit 3192fbf3 authored by Marco Ortiz's avatar Marco Ortiz

Preparación para la integración con el nuevo jenkins

parent f05dbd9f
pipeline { pipeline {
agent any agent any
environment {
IMAGE = readMavenPom().getArtifactId()
VERSION = readMavenPom().getVersion()
}
tools { tools {
maven 'Maven' maven 'Maven'
jdk "jdk-11.0.1" jdk "jdk-11.0.1"
...@@ -9,9 +13,9 @@ pipeline { ...@@ -9,9 +13,9 @@ pipeline {
stage ('Initialize') { stage ('Initialize') {
steps { steps {
sh ''' sh '''
echo "PATH = ${PATH}" echo "PATH = ${PATH}"
echo "M2_HOME = ${M2_HOME}" echo "M2_HOME = ${M2_HOME}"
''' '''
} }
} }
stage('Build') { stage('Build') {
...@@ -63,5 +67,12 @@ pipeline { ...@@ -63,5 +67,12 @@ pipeline {
} }
} }
} }
stage('Build Docker Image') {
steps {
script {
dockerImage = docker.build imagename
}
}
}
} }
} }
\ No newline at end of file
...@@ -4,7 +4,7 @@ ...@@ -4,7 +4,7 @@
<groupId>com.bytesw.bytebot</groupId> <groupId>com.bytesw.bytebot</groupId>
<modelVersion>4.0.0</modelVersion> <modelVersion>4.0.0</modelVersion>
<artifactId>bytebot-service</artifactId> <artifactId>bytebot-service</artifactId>
<version>1.0.1</version> <version>1.0.1-SNAPSHOT</version>
<packaging>jar</packaging> <packaging>jar</packaging>
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment