-
Notifications
You must be signed in to change notification settings - Fork 158
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
Recommend don't create the dockerTag${project.version} and dockerPush${project.version} task by default, keep to add it by user self as 0.30.0 version. #516
Comments
+1 Same here! Since |
Agree with you! |
Please prioritise. This issues blocks us to upgrade plugin version |
Any progress on it? Faced with that problem today. We have pipeline which pushes docker image, depending on some code. Since 0.32.0 it takes |
What do you want from us when you write "please prioritise"? |
@idkomarov See issue description
|
As a temporary solution when anyone will need it using .kts:
But hope it will be fixed as soon as possible. |
For anyone that ends up with something similar to the following error when building
We are migrating from Gradle 7 to 8 and on updating the Palantir plugin version we see this when running a PR build on ADO (Azure Dev Ops). The issue is that the addition of the default tag with the project.version is picking up a string that contains '/' which along with ':' is not allowed in the task name generation. So the error is misleading but ultimately ${project.version} is not under the control of the developer and the plugin will always fail. I could understand generating a default tag if no tag existed but in this scenario the default is not required but the fact it is put there causes the build to fail. The suggested workarounds above I don't think will work as the issue is not that the default tag exists and the task can be disabled but that it can never even be created due to the unusual branch name and name generation logic. Be interested to know if Github PR builds use the same technique of using a temporary merge branch and as such would have the same issue? |
What happened?
In 0.31.0 version, the DockerExtension had chagne
from
to
And this will create two tasks: dockerTag${project.version} and dockerPush${project.version}.
But the project.version value maybe like 'x.y.x-SNAPSHOT' for nightly build, and the corresponding tag is nightly, if run dockerPush task, will also run dockerPush${project.version} cause to push a ${archivesBaseName}:x.y.x-SNAPSHOT tag.
project.tasks["dockerTag${project.version}"].enabled = false
project.tasks["dockerPush${project.version}"].enabled = false
What did you want to happen?
Just keep the default value of tags same with previous version(<0.31.0).
User can add it by self who want these tasks like following:
The text was updated successfully, but these errors were encountered: