Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Override drone build restart parameters #3182

Open
wants to merge 1 commit into
base: master
Choose a base branch
from

Conversation

asosso
Copy link

@asosso asosso commented Jan 14, 2022

drone build restart never override the custom parameters set by cli if they are already present in the build:

I.E.

$ drone build restart org/myrepo -p DOWNSTREAM_IMAGE_VER=test1 1
Number: 2
Status: pending
Event: push
[...]

In this case it works: DOWNSTREAM_IMAGE_VER=test1

$ drone build restart org/myrepo -p DOWNSTREAM_IMAGE_VER=test2 2
Number: 3
Status: pending
Event: push
[...]

In this case the variable test2 is ignored: DOWNSTREAM_IMAGE_VER=test1

More detail about the issue: https://discourse.drone.io/t/issue-with-params-using-downstream-plugin/10418

`drone build restart` never override the custom parameters set by cli if they are already present in the build:

I.E.

```
$ drone build restart org/myrepo -p DOWNSTREAM_IMAGE_VER=test1 1
Number: 2
Status: pending
Event: push
[...]
```
In this case it works: `DOWNSTREAM_IMAGE_VER=test1`


```
$ drone build restart org/myrepo -p DOWNSTREAM_IMAGE_VER=test2 2
Number: 3
Status: pending
Event: push
[...]
```
In this case the variable test2 is ignored: `DOWNSTREAM_IMAGE_VER=test1`

More detail about the issue: https://discourse.drone.io/t/issue-with-params-using-downstream-plugin/10418
@eoinmcafee00
Copy link
Contributor

Hi @asosso

Can you please add a unit test for this?

Cheers,
Eoin

@CLAassistant
Copy link

CLAassistant commented Jan 19, 2022

CLA assistant check
All committers have signed the CLA.

@leandrolerena
Copy link

What is the state of this PR? Can we expect a merge? We are also affected by this and could deliver an example where the downstream trigger does not behaves as expected.

{"version":"2.11.1"}

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

4 participants