Skip to content

Export Variables - Default values are not honoured #303

@sgokaram-saagie

Description

@sgokaram-saagie

As per requirement SCOPE and include_all_var are optional and have default values.
So if the request contains
env {
name = [ 'P_VAR1' ]
}

then scope is project , and include_all_var is false by default and this should work. But i am facing below error
saagies-mbp:Gradle shivakumar$ gradle -b build.gradle.projectExportEnvV2 projectExport

Task :projectsExport FAILED

FAILURE: Build failed with an exception.

  • What went wrong:
    Execution failed for task ':projectsExport'.

jobs, pipelines and variables to be exported can t be empty at the same time

  • Try:
    Run with --stacktrace option to get the stack trace. Run with --info or --debug option to get more log output. Run with --scan to get full insights.

  • Get more help at https://help.gradle.org

Deprecated Gradle features were used in this build, making it incompatible with Gradle 7.0.
Use '--warning-mode all' to show the individual deprecation warnings.
See https://docs.gradle.org/6.5/userguide/command_line_interface.html#sec:command_line_warnings

BUILD FAILED in 2s
1 actionable task: 1 executed

Metadata

Metadata

Labels

bugSomething isn't working

Type

No type
No fields configured for issues without a type.

Projects

No projects

Relationships

None yet

Development

No branches or pull requests

Issue actions