Add agent description in slave
for getting ip of foundation nodes in tests scenario
Change-Id: I4e3f1963bb183a64ad3a11e931e5db89f22aea89
diff --git a/jobs/pipelines/run-test-scenarios.groovy b/jobs/pipelines/run-test-scenarios.groovy
index f2f3e74..c85d9fe 100644
--- a/jobs/pipelines/run-test-scenarios.groovy
+++ b/jobs/pipelines/run-test-scenarios.groovy
@@ -52,8 +52,11 @@
currentBuild.result = 'FAILURE'
}
} // stage("Run tests")
-
- if(currentBuild.result != 'FAILURE'){
+ if (fileExists("jenkins_agent_description.txt")) {
+ def String description = readFile("jenkins_agent_description.txt")
+ currentBuild.description = "${description}"
+ }
+ if (currentBuild.result != 'FAILURE') {
stage("Archive all xml reports") {
dir("${env.slave_workdir }") {
archiveArtifacts artifacts: "**/*.xml,**/*.log"
diff --git a/jobs/pipelines/swarm-bootstrap-salt-cluster-heat.groovy b/jobs/pipelines/swarm-bootstrap-salt-cluster-heat.groovy
index 69d6ea6..414cdec 100644
--- a/jobs/pipelines/swarm-bootstrap-salt-cluster-heat.groovy
+++ b/jobs/pipelines/swarm-bootstrap-salt-cluster-heat.groovy
@@ -287,6 +287,8 @@
. /home/jenkins/venv_testrail_analyzer/bin/activate; pip install git+https://review.gerrithub.io/ibumarskov/testrail-reporter
""")
shared.update_working_dir()
+ // Add info about foundation node for description
+ writeFile(file: "jenkins_agent_description.txt", text: jenkins_agent_description, encoding: "UTF-8")
}
withCredentials([