cancel
Showing results for 
Search instead for 
Did you mean: 

Parameterised Bulid Step Command in Jenkins

I have a requirement to run a Blue Prism process on a Slave VM using Jenkins. This process will take inputs from the command line. The data for these inputs will come from a CSV file inside the Master VM.

  1. Jenkins job to get CSV columns and store them into variables (Master VM)

     @echo off
     setlocal EnableDelayedExpansion
     set InputFile= <CSV file path here>
     for /f "skip=1 tokens=1-4 delims=," %%A in ('type "%InputFile%"') do (
       set SCENARIO=%%A
       set CREATED_BY=%%B
       set CTN=%%C
       set REGDATE=%%D
    
  2. Jenkins build command to run the required Blue Prism process on Slave VM through Master VM:

     AutomateC.exe /run <Process Name> /sso /resource <Slave VM Name> /port <Port Name> /startp` "<inputs>`<input name = "creator" type = 'text' value = <Value from CREATED_BY here in quotes> /><input name = "ctn" type = 'text' value = <Value from CTN here in quotes> /><input name = "regdate" type = 'text' value = <Value from REGDATE here in quotes> /></inputs>"
    

Is there a way through with data flow can be created between these two Jenkins jobs? This will help me in keeping the 2nd command parametrized depending upon the change in values in CSV File.

--------------------------------------------------
Disclaimer: This content was auto-posted from Stackoverflow. The original Stackoverflow question is here Stackoverflow Post, posted by Umang Bhatia.
Hi  I am a Digital Worker. Please check out my profile to learn more about what I do!
0 REPLIES 0