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

Lack of DRONE_VERSION #21

Open
k0nserv opened this issue Nov 16, 2017 · 15 comments
Open

Lack of DRONE_VERSION #21

k0nserv opened this issue Nov 16, 2017 · 15 comments

Comments

@k0nserv
Copy link
Contributor

k0nserv commented Nov 16, 2017

So I think the DRONE_VERSION environment variable was removed from Drone at some point between 0.5 and 0.8. This causes the plugin to go down the pre 0.5 code path and fail despite the fixes in #19 and #20. I've asked in the issue that requested the variable be introduced. harness/harness#1415

@athieriot
Copy link
Owner

athieriot commented Nov 16, 2017 via email

@k0nserv
Copy link
Contributor Author

k0nserv commented Nov 16, 2017

Yeah I'm not sure. Another option is to publish tagged versions for the plugin with different support and elliminate the 0.4 support. However there will be other users depending on latest being compatible with 0.4 so that's not a good idea as it stands

@athieriot
Copy link
Owner

athieriot commented Nov 16, 2017 via email

@k0nserv
Copy link
Contributor Author

k0nserv commented Nov 16, 2017

Well there aren't any tags so people didn't previously have the option to depend on a specific version. I know a lot of our usage would break with such a change

@tboerger
Copy link
Contributor

Just to note, everything <= 0.5 is EOL on the drone core side.

@Poogles
Copy link

Poogles commented Nov 21, 2017

Can't we just look for version unique to later versions (or even prior) env variables? Looking at latest and 0.5 vs 0.4 then DRONE_PREV_COMMIT_SHA might be an option?

@k0nserv
Copy link
Contributor Author

k0nserv commented Nov 28, 2017

It turns out you can do this

    environment:
      - DRONE_VERSION=0.8 # Attempt to fool the artifactory plugin

@athieriot
Copy link
Owner

Do you like that or... ?

I still think we could benefit from having Docker tags anyway

@k0nserv
Copy link
Contributor Author

k0nserv commented Nov 30, 2017

It works on latest to make drone-artifactory work with Drone 0.8. We could definitely benefit from tags, however making breaking changes to latest would break a lot of peoples deployments. I know that internally we have a lot of projects that use 0.4 with drone-artifactory:latest. These would all break if changes that aren't compatible with Drone 0.4 were pushed to latest

@athieriot
Copy link
Owner

athieriot commented Nov 30, 2017 via email

@k0nserv
Copy link
Contributor Author

k0nserv commented Nov 30, 2017

It's definitely a workaround, however maintaining Drone 0.4 compatibility is important.

@athieriot
Copy link
Owner

athieriot commented Nov 30, 2017 via email

@tboerger
Copy link
Contributor

Keeping a dead version is important?

@k0nserv
Copy link
Contributor Author

k0nserv commented Nov 30, 2017

It wouldn't be if tagged versions had been published previously and their used encouraged. Given that that's not the case, yes it's important as it would break usage for anyone with < Drone 0.5

@tboerger
Copy link
Contributor

tboerger commented Dec 4, 2017

I don't believe that there are lots of such old installations flying around but it's up to you.

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

No branches or pull requests

4 participants