git://wamblee.org
/
upnpmonitor
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
first try to push to nexus
[upnpmonitor]
/
Jenkinsfile
diff --git
a/Jenkinsfile
b/Jenkinsfile
index db0435c10d24b3d7d973bc62351c149e13172bae..61cf1aef6b696823c9a3e69a10c2d717c3f2e83a 100644
(file)
--- a/
Jenkinsfile
+++ b/
Jenkinsfile
@@
-3,7
+3,7
@@
String cron_string = BRANCH_NAME == "trunk" ? "10 3 * * *" : ""
pipeline {
agent {
pipeline {
agent {
- kubernetes agentsetup(containers: 'java8')
+ kubernetes agentsetup(containers: 'java8
,kaniko
')
}
options {
disableConcurrentBuilds()
}
options {
disableConcurrentBuilds()
@@
-14,13
+14,32
@@
pipeline {
stage('Main') {
steps {
sh """
stage('Main') {
steps {
sh """
- mvn install
+ #No longer building the code since cling-core is no longer
+ #maintained
+ #mvn install
(
cd site
mvn -N -Ddistrib=/data/www/http.upnpmonitor.wamblee.org/ site site:deploy
)
"""
(
cd site
mvn -N -Ddistrib=/data/www/http.upnpmonitor.wamblee.org/ site site:deploy
)
"""
+ container('kaniko') {
+ sh """
+ echo 'Hello world'
+ /kaniko/executor --dockerfile Dockerfile \
+ --cache=true \
+ --cache-ttl=100000h \
+ --context \$( pwd ) \
+ --destination cat.wamblee.org/rockyrocks:${env.BRANCH_NAME}
+ """
+ }
}
}
}
}
}
}
+ post {
+ 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}"
+ }
+ }
}
}