Passing Parameter Antar Step di Job Oracle Visual Builder Studio/Hudson / Jenkins

Oracle visual builder studio – Builder adalah tools SaaS untuk melakukan CI/CD. Sebenernya ini hanya hudson yang di fork oleh oracle. Hudson sendiri sudah di fork oleh komunitasnya menajdi Jenkins. Namun oracle visual builder studio tidak menyediakan plugin seperti jenkins.

Mencoba menggunakan parameter, dan membuat step Unix Shell. ketika di ubah ternyata di step yang lain hasilnya tidak berubah, melainkan tetap sama dengan nilai awal parameter tersebut (entah itu default value ataupun manual input).

Setelah dicoba telusuri cara kerja nya dengan di debug langsung serta ssh langsung, Ternyata tidak bisa. Karena cara kerjanya adalah

  • Master ssh ke worker
  • Membuat folder sementara (workspace)
  • setiap step dibikin dalam file bash script. misal ada 5 step, berarti ada 5 file .sh
  • /bin/sh ke tiap file .sh yang tadi, dengan mempasssing arameter utama dari job
  • Menghapus fodler sementara

Kalau seperti itu, berarti tidak bisa karena child process tidak dapat mengganti env variabel parent nya.

Solusi

dengan mengakal-akali menyimpan env variable di file di folder sementara tadi, dan di setiap step meload file tersebut untuk dijadikan env variable

# ----------------------------------------------------
# Step 1
export $(cat env | xargs)

A=123

set > env
# ----------------------------------------------------
# Step 2
export $(cat env | xargs)

echo $A


set > env
# ----------------------------------------------------

5 Replies to “Passing Parameter Antar Step di Job Oracle Visual Builder Studio/Hudson / Jenkins”

  1. This website is known as a walk-through for the entire information you wanted about this and didn抰 know who to ask. Glimpse right here, and you抣l definitely discover it.

  2. I not to mention my friends were found to be looking at the great pointers located on your web page and before long developed a terrible feeling I never expressed respect to the site owner for those strategies. My people became for that reason thrilled to read through all of them and already have unquestionably been taking pleasure in those things. Appreciate your actually being so considerate as well as for deciding upon this form of notable areas millions of individuals are really desirous to be aware of. Our honest apologies for not expressing gratitude to you sooner.

Leave a Reply

Your email address will not be published. Required fields are marked *