Windows commands and Remote Server Variables
1. Is there any way for Build Forge (web client only) to prompt a user for variable input before a project is executed? Instead of forcing a user to dig their way into the environment variable list to find the right variable.
2. I can create a step that makes a script which is executed on a remote server, for example set path=%path%;D:\temp\test, but how do I pull the output back to Build Forge? How do you echo the final result from the remote server?
3. Related to question 2, how do you capture a remote server variable and place it within a .set changed variable within Build Forge?
4. Can you execute a command, or "type" log file output from the remote server via using Build Forge email "templates"?
Can someone provide an example of how to do these?
2. I can create a step that makes a script which is executed on a remote server, for example set path=%path%;D:\temp\test, but how do I pull the output back to Build Forge? How do you echo the final result from the remote server?
3. Related to question 2, how do you capture a remote server variable and place it within a .set changed variable within Build Forge?
4. Can you execute a command, or "type" log file output from the remote server via using Build Forge email "templates"?
Can someone provide an example of how to do these?
2 answers
From my understanding, this could be done using a collector.
However I see no real time examples of how you setup a collector nor how to pull a remote server variable into the build forge server env.
example - username
Goal is to pull this from the remote server and capture to a variable.
run command would be "echo. %username%"
OH sweet I got it...the answer is:
Run Command = echo.%%username%%
I am aware that you can use .bset to capture already collected server variables like "path" or "hostname".
example - .bset env VariableName=`hostname` or
.bset env "Test=`hostname`"
However I see no real time examples of how you setup a collector nor how to pull a remote server variable into the build forge server env.
example - username
Goal is to pull this from the remote server and capture to a variable.
run command would be "echo. %username%"
OH sweet I got it...the answer is:
Run Command = echo.%%username%%
I am aware that you can use .bset to capture already collected server variables like "path" or "hostname".
example - .bset env VariableName=`hostname` or
.bset env "Test=`hostname`"
Other then the questions above,
Now that I have figured out how to setup a collector,
From my understanding they get placed into a server env variable name.
Currently, I have not had any success being able to echo a manifest variable.
I have tried echo.%VAR%, %%VAR%%, ${VAR} without any success.
How do you echo a manifest variable?
Now that I have figured out how to setup a collector,
From my understanding they get placed into a server env variable name.
Currently, I have not had any success being able to echo a manifest variable.
I have tried echo.%VAR%, %%VAR%%, ${VAR} without any success.
How do you echo a manifest variable?