git://wamblee.org
/
utils
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
offline building of site deploy to improve performance.
[utils]
/
Jenkinsfile
diff --git
a/Jenkinsfile
b/Jenkinsfile
index 833b6ad0738768e8147ebf4b2591fbcd611c7661..13ad14a6925011630fb8cd247c02a55e822e30cc 100644
(file)
--- a/
Jenkinsfile
+++ b/
Jenkinsfile
@@
-13,9
+13,9
@@
pipeline {
stages {
stage('Main') {
steps {
stages {
stage('Main') {
steps {
- sh
"""
- export
- rm -rf ~/.m2/repository/org/wamblee
+ sh
'''
+
export
+
#
rm -rf ~/.m2/repository/org/wamblee
mvn install
mvn install
@@
-29,17
+29,18
@@
pipeline {
echo ""
echo "Building site for $dir"
echo ""
echo ""
echo "Building site for $dir"
echo ""
- mvn -N -Ddistrib=/data/www/http.utils.wamblee.org/ site site:deploy
+ mvn -N -
o -
Ddistrib=/data/www/http.utils.wamblee.org/ site site:deploy
echo ""
echo ""
)
done
mvn javadoc:aggregate
echo ""
echo ""
)
done
mvn javadoc:aggregate
- rsync -a --delete target/site/apidocs/ /data/www/http.wamblee.org/apidocs/
+ rsync -av --delete target/site/apidocs/ /data/www/http.wamblee.org/apidocs/
+
+ cp src/site/index.html /data/www/http.utils.wamblee.org/
-
- """
+ '''
}
}
}
}
}
}
@@
-48,5
+49,10
@@
pipeline {
junit '**/surefire-reports/*.xml'
cobertura coberturaReportFile: '**/target/site/cobertura/coverage.xml'
}
junit '**/surefire-reports/*.xml'
cobertura coberturaReportFile: '**/target/site/cobertura/coverage.xml'
}
+ changed {
+ mail to: "jenkins@wamblee.org",
+ subject: "jenkins build:${currentBuild.currentResult}: ${env.JOB_NAME}",
+ body: "${currentBuild.currentResult}: Job ${env.JOB_NAME}\nMore Info can be found here: ${env.BUILD_URL}"
+ }
}
}
}
}