linkedin / linkedin-gradle-plugin-for-apache-hadoop

Apache License 2.0
117 stars 76 forks source link

Conditional workflow feature not working while using this plugin #263

Open RohanSMore opened 4 years ago

RohanSMore commented 4 years ago

We are using version 0.13.3 of com.linkedin.gradle.hadoop.HadoopPlugin .

We are trying to specify conditions in a job inside workflow as follows:

addJob('javaprocess', 'jobA') {
    baseProperties 'basePropertiesName'
    set properties: [
            'type'     : 'javaprocess',
            'Name'      : 'jobA',
    ]
    depends 'dependentJobId'
    conditions 'all_done'
}

We are getting below error during build:

A problem occurred evaluating script.

Could not find method conditions() for arguments [all_done] on (Job: name = jobA) of type com.linkedin.gradle.hadoopdsl.job.Job.

Following are my queries:

  1. Does the linkedin plugin support conditional workflow parameters?
  2. Is this the correct way to specify conditions in a job and if yes, any idea why we are getting this error.

Please give me the pointers if anybody has idea about this.