Jenkins groovy pipeline if else job run -


i prepare 2 jobs in same jenkins server read specific branch. both jenkins servers read same git branch.

i put there if else statement if running on jenkins server named "blabla1" should execute test "x", if running on jenkins server "blabla2" should run test "y".

is there env variable read current jenkins server hostname or name only?


Comments

Popular posts from this blog

PHP and MySQL WP -

android - InAppBilling registering BroadcastReceiver in AndroidManifest -

go - golang pprof for c library code -