diff --git a/Jenkinsfile1 b/Jenkinsfile1 new file mode 100644 index 0000000..3a5ec59 --- /dev/null +++ b/Jenkinsfile1 @@ -0,0 +1,40 @@ +pipeline{ + agent any + tools{ + maven 'M2_HOME' + } + stages{ + stage( 'mavin build'){ + steps{ + sh 'mvn clean install package' + } + } + stage('upload artifact'){ + scripts{ + def mavenPom = readMavenPom file: 'pom.xml' + nexusArtifactUploader artifacts: + [[artifactId: "${POM_ARTIFACTID}" + , classifier: '', + file: "target/: target/${POM_ARTIFACTID}-${POM_VERSION}.${POM_PACKAGING}", + type: "${mavenPOM.PACKAGING}"]], + credentialsId: 'nexusID', + groupId: "${mavenPom_groupID}", + nexusUrl: '45.79.58.191:8081', + nexusVersion: 'nexus2', + protocol: 'http', + repository: 'biom', + version: "${POM_VERSION}" + + + } + steps{ + sh 'pwd' + } + } + stage('list the dir '){ + steps{ + sh 'ls' + } + } + } +} \ No newline at end of file diff --git a/pom.xml b/pom.xml index d6747a1..834fc16 100644 --- a/pom.xml +++ b/pom.xml @@ -9,8 +9,8 @@ com.spring - bioMedical - 0.0.1-SNAPSHOT + bioMedicals + 0.0.5-SNAPSHOT bioMedical Demo project for Spring Boot jar