parameters - Jenkins parameterized build changing default value -


i using jenkins "extended choice parameter" plugin , want schedule build run periodically without human intervention.

the parameter build selected drop down list.

the drop down list parameter generated through external script , want pick top value default value.

is there way select top element default value scheduled job?

i read there ways run job remotely using url hoping can achieve making changes job configuration don't have manage separate script it.

my jenkins instance running on linux , run job using build trigger --> build periodically section of jenkins job configuration.

well, if want latest picked default scheduled job, have modify external script use populate drop-down menu. i'm not sure how you're populating list through external script know way have used , works fine me. use external script generate list , store list in file. in case, things little different. discuss further.

first, select following options in extended choice parameter:

  1. in simple parameter types section, go single select in parameter type

  2. instead of choose source value, go choose source default value. here, select default property file , specify path of file generated external script.

enter image description here

since have select latest list, means providing latest entry in stored file should suffice. when external script runs , generates list, store latest in file. file picked jenkins , you’re go.

for specifying default property key, refer this link. in given link, have provided command can generate file in format correctly interpreted jenkins while loading file. give idea case. difference in case have filter out latest , store single entry in file.

p.s.: make sure property file on jenkins master (in case of master-slave setup).


Comments

Popular posts from this blog

javascript - how to protect a flash video from refresh? -

android - Associate same looper with different threads -

visual studio 2010 - Connect to informix database windows form application -