Skip to content

Pipeline parameters injected in Docker #5129

Closed
@DRKolev-code

Description

@DRKolev-code

I will write this here too. Relates to:

#5124

This does not fix the issue. The offending code is:

                if isinstance(arg, PipelineVariable):
                    processed_value = json.dumps(arg.expr)
                    processed_arguments.append(processed_value)
                    print(processed_value)
                    print("YES")

This produces the broken arguments:

NO: --test_dict
YES: {"Get": "Parameters.test_dict"}
NO: --test_list
YES: {"Get": "Parameters.test_list"}
NO: --test_string
YES: {"Get": "Parameters.test_string"}
NO: --test_bool
YES: {"Std:Join": {"On": "", "Values": [{"Get": "Parameters.test_bool"}]}}
NO: --test_float
YES: {"Std:Join": {"On": "", "Values": [{"Get": "Parameters.test_float"}]}}
NO: --test_int
YES: {"Std:Join": {"On": "", "Values": [{"Get": "Parameters.test_int"}]}}
NO: --test_param
YES: {"Get": "Parameters.test_param"}

The Dockerimages look like this:

                                 - --test_dict
                                 - '{"Get": "Parameters.test_dict"}'
                                 - --test_list
                                 - '{"Get": "Parameters.test_list"}'
                                 - --test_string
                                 - '{"Get": "Parameters.test_string"}'
                                 - --test_bool
                                 - '{"Std:Join": {"On": "", "Values": [{"Get":
                             "Parameters.test_bool"}]}}'
                                 - --test_float
                                 - '{"Std:Join": {"On": "", "Values": [{"Get":
                             "Parameters.test_float"}]}}'
                                 - --test_int
                                 - '{"Std:Join": {"On": "", "Values": [{"Get":
                             "Parameters.test_int"}]}}'
                                 - --test_param
                                 - '{"Get": "Parameters.test_param"}'

Metadata

Metadata

Assignees

Labels

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions