projects
/
osm
/
devops.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
install_osm.sh: proper read of juju account info
[osm/devops.git]
/
jenkins
/
ci-pipelines
/
ci_helper.groovy
diff --git
a/jenkins/ci-pipelines/ci_helper.groovy
b/jenkins/ci-pipelines/ci_helper.groovy
index
21a8373
..
94e1b70
100644
(file)
--- a/
jenkins/ci-pipelines/ci_helper.groovy
+++ b/
jenkins/ci-pipelines/ci_helper.groovy
@@
-20,19
+20,23
@@
def get_archive(artifactory_server, mdg, branch, build_name, build_number, patte
println("retrieve archive for ${mdg}/${branch}/${build_name}/${build_number}/${pattern}")
println("retrieve archive for ${mdg}/${branch}/${build_name}/${build_number}/${pattern}")
+ // if the build name does not contain merge, then this is a patchset/staging job
+ if (!build_name.contains('merge')) {
+ branch += '-staging'
+ }
def repo_prefix = 'osm-'
def downloadSpec = """{
"files": [
{
"target": "./",
def repo_prefix = 'osm-'
def downloadSpec = """{
"files": [
{
"target": "./",
- "pattern": "${repo_prefix}${mdg}/${branch}/${pattern}",
+ "pattern": "${repo_prefix}${mdg}/${branch}/${
build_number}/${
pattern}",
"build": "${build_name}/${build_number}"
}
]
}"""
server.download(downloadSpec)
"build": "${build_name}/${build_number}"
}
]
}"""
server.download(downloadSpec)
- // workaround. flatten
and repo th
e specific build num from the directory
+ // workaround. flatten
repo to remov
e specific build num from the directory
sh "cp -R ${branch}/${build_num}/* ."
sh "rm -rf ${branch}/${build_num}"
}
sh "cp -R ${branch}/${build_num}/* ."
sh "rm -rf ${branch}/${build_num}"
}
@@
-75,7
+79,8
@@
def systest_run(container_name, test, source_rc = null) {
}
else
{
}
else
{
- lxc_run(container_name, "make -C devops/systest OSM_HOSTNAME=${so_ip} OSM_RO_HOSTNAME=${ro_ip} ${test}")
+ result = lxc_run(container_name, "make -C devops/systest OSM_HOSTNAME=${so_ip} OSM_RO_HOSTNAME=${ro_ip} ${test}")
+ echo result
}
lxc_get_file(container_name, "/root/devops/systest/reports/pytest-${test}.xml",'.')
}
}
lxc_get_file(container_name, "/root/devops/systest/reports/pytest-${test}.xml",'.')
}
@@
-87,8
+92,14
@@
def get_ip_from_container( container_name ) {
def archive(artifactory_server,mdg,branch,status) {
server = Artifactory.server artifactory_server
def archive(artifactory_server,mdg,branch,status) {
server = Artifactory.server artifactory_server
- def properties = "branch=${branch};status=${status}"
+ def properties = ""
+ //def properties = "branch=${branch};status=${status}"
def repo_prefix = 'osm-'
def repo_prefix = 'osm-'
+
+ // if the build name does not contain merge, then this is a patchset/staging job
+ if ( !JOB_NAME.contains('merge') ) {
+ branch += '-staging'
+ }
def uploadSpec = """{
"files": [
{
def uploadSpec = """{
"files": [
{
@@
-108,6
+119,12
@@
def archive(artifactory_server,mdg,branch,status) {
"target": "${repo_prefix}${mdg}/${branch}/${BUILD_NUMBER}/",
"props": "${properties}",
"flat": false
"target": "${repo_prefix}${mdg}/${branch}/${BUILD_NUMBER}/",
"props": "${properties}",
"flat": false
+ },
+ {
+ "pattern": "changelog/*",
+ "target": "${repo_prefix}${mdg}/${branch}/${BUILD_NUMBER}/",
+ "props": "${properties}",
+ "flat": false
}]
}"""
}]
}"""