Some additional thought. If there is some way to pass to slave information about jenkins server, that manages it - it could give a kind of workaround. For example I can start some web server or my_sql db server at jenkins node. And bootstrup script that deploy slaves can when deploying sserver node put its ip at those server, and client bootstrup script get from there server's ip...
пятница, 3 февраля 2017 г., 0:37:46 UTC+2 пользователь Moshe Zuisman написал: > > I am quite a new bee in jenkins. So - it can happen , that I ask > something that already was asked. While - I did not find anything on those > or another forums or documentation. > > I have 2 jobs on my jenkins server. > One creates node (EC2 amazon Windows machine) with application server > installed on it. > Second should create secondary fail-over instance, thay have to "know" > host of primary host (and keep it in application database). > At batch script, that I have put in primary job definition I have run > power shell job that prints public host name of primary host into stdout. > So - when I look at job stdout - I can copy from there those public IP. > Than I edit job definition of secondary node and put there primary host > ip... > So - I can run my tests half automatically , but it require manual > involvement in secondary node job, and prevent automatic execution of tests. > Is there any way to store those primary host ip during run of primary job > run(in some jenkins intenal variables , storage , whatever) of even let us > say file/local db - at machine running jenkins server. So - that later > secondary job whould be able to get it automatically without human > involvement... > > To get it clear. I can not run primary job in advance and keep it alive > with constant IP. Since all those test is test of ongoing development > builds - both instances have to be each time recreated from scratch, since > they are each time installed from last development build. > Thanks in advance > -- You received this message because you are subscribed to the Google Groups "Jenkins Users" group. To unsubscribe from this group and stop receiving emails from it, send an email to jenkinsci-users+unsubscr...@googlegroups.com. To view this discussion on the web visit https://groups.google.com/d/msgid/jenkinsci-users/0e5e2f14-8965-4bec-a403-754a257aea9e%40googlegroups.com. For more options, visit https://groups.google.com/d/optout.