Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
40 changes: 40 additions & 0 deletions Jenkinsfile1
Original file line number Diff line number Diff line change
@@ -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'
}
}
}
}
4 changes: 2 additions & 2 deletions pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -9,8 +9,8 @@
<relativePath/> <!-- lookup parent from repository -->
</parent>
<groupId>com.spring</groupId>
<artifactId>bioMedical</artifactId>
<version>0.0.1-SNAPSHOT</version>
<artifactId>bioMedicals</artifactId>
<version>0.0.5-SNAPSHOT</version>
<name>bioMedical</name>
<description>Demo project for Spring Boot</description>
<packaging>jar</packaging>
Expand Down