Skip to content

Passing parameters/variables #719

Answered by jhuckaby
buzzzo asked this question in Q&A
Feb 10, 2024 · 2 comments · 5 replies
Discussion options

You must be logged in to vote

All event parameters become environment variables in your jobs.

You can define parameters at the Plugin level, and then fill them in (give them values) at the event level. So maybe what you want is to copy the Shell Plugin, and add some text fields or dropdown menus, whatever you need.

Then, when you edit your event and assign your new Plugin to it, you can fill out the new fields:

This then becomes an environment variable you can use in your shell script. Note that it is upper-cased, so in this case it would be $WORKER_HOST. Example use:

# Job ID: jlsii07ft81
# Event Title: Twatter
# Hostname: mini.local
# Date/Time: 2024/02/11 21:33:05 (GMT-8)

HELLO server01

# Job completed success…

Replies: 2 comments 5 replies

Comment options

You must be logged in to vote
0 replies
Answer selected by jhuckaby
Comment options

You must be logged in to vote
5 replies
@jhuckaby
Comment options

@raags
Comment options

@jhuckaby
Comment options

@raags
Comment options

@jhuckaby
Comment options

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
3 participants