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 — Create Jenkinsfile · johnberb/samplejavaapp@fc61bf7

File tree

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

‎jenkins/Jenkinsfile‎

Copy file name to clipboard
+40Lines changed: 40 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,40 @@
1+
pipeline {
2+
agent any
3+
stages {
4+
stage('compile') {
5+
steps {
6+
echo 'compiling..'
7+
git url: 'https://github.com/lerndevops/samplejavaapp'
8+
sh script: '/opt/maven/bin/mvn compile'
9+
}
10+
}
11+
stage('codereview-pmd') {
12+
steps {
13+
echo 'codereview..'
14+
sh script: '/opt/maven/bin/mvn -P metrics pmd:pmd'
15+
}
16+
post {
17+
success {
18+
recordIssues enabledForFailure: true, tool: pmdParser(pattern: '**/target/pmd.xml')
19+
}
20+
}
21+
}
22+
stage('unit-test') {
23+
steps {
24+
echo 'unittest..'
25+
sh script: '/opt/maven/bin/mvn test'
26+
}
27+
post {
28+
success {
29+
junit 'target/surefire-reports/*.xml'
30+
}
31+
}
32+
}
33+
stage('package') {
34+
steps {
35+
echo 'package......'
36+
sh script: '/opt/maven/bin/mvn package'
37+
}
38+
}
39+
}
40+
}

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.