GV

GeezerVison

The World Wide Web, restored to 800 pixels of glory.

Home|About|Gaming cabinet|Archives|How it works|Starter sites

On this site

  • Sign in
  • ActionsCI/CD and automation
  • CodespacesCloud development environments
  • All Features
  • Documentation
  • Training
  • Certifications
  • Build with Copilot
  • Customize Copilot
  • Integrations
  • Trending repos
  • GitHub Sponsors
  • Developer articles
  • Enterprises

This view

  • Original page
  • New address

GeezerVison is showing github.com — Update Jenkinsfile · sammana9/samplejavaapp@2939a11

File tree

Expand file treeCollapse file tree
Open diff view settings
Filter options
  • Jenkinsfile
Expand file treeCollapse file tree
Open diff view settings
Collapse file

‎Jenkinsfile‎

Copy file name to clipboardExpand all lines: Jenkinsfile
+10-5Lines changed: 10 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,17 +1,22 @@
11
pipeline {
22
agent any
3+
4+
tools{
5+
maven 'Maven3.6'
6+
}
7+
38
stages {
49
stage('compile') {
510
steps {
611
echo 'compiling..'
712
git url: 'https://github.com/sammana9/DevOpsClassCodes'
8-
sh script: '/opt/apache-maven-3.6.3/bin/mvn compile'
13+
sh 'mvn compile'
914
}
1015
}
1116
stage('codereview-pmd') {
1217
steps {
1318
echo 'codereview..'
14-
sh script: '/opt/apache-maven-3.6.3/bin/mvn -P metrics pmd:pmd'
19+
sh 'mvn -P metrics pmd:pmd'
1520
}
1621
post {
1722
success {
@@ -22,7 +27,7 @@ pipeline {
2227
stage('unit-test') {
2328
steps {
2429
echo 'unittest..'
25-
sh script: '/opt/apache-maven-3.6.3/bin/mvn test'
30+
sh 'mvn test'
2631
}
2732
post {
2833
success {
@@ -33,7 +38,7 @@ pipeline {
3338
stage('codecoverate') {
3439
steps {
3540
echo 'codecoverage..'
36-
sh script: '/opt/apache-maven-3.6.3/bin/mvn cobertura:cobertura -Dcobertura.report.format=xml'
41+
sh 'mvn cobertura:cobertura -Dcobertura.report.format=xml'
3742
}
3843
post {
3944
success {
@@ -44,7 +49,7 @@ pipeline {
4449
stage('package') {
4550
steps {
4651
echo 'package..'
47-
sh script: '/opt/apache-maven-3.6.3/bin/mvn package'
52+
sh 'mvn package'
4853
}
4954
}
5055
}

0 commit comments

Comments
0 (0)
You are visitor 01402792 — GeezerVison does not store the pages you look up.
Best viewed with Netscape Navigator 4.7 or Internet Explorer 6 at 800×600. No cookies required.