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

docker tag must have a task name #685

Open
oeresundsgruppen opened this issue Oct 10, 2023 · 3 comments
Open

docker tag must have a task name #685

oeresundsgruppen opened this issue Oct 10, 2023 · 3 comments

Comments

@oeresundsgruppen
Copy link

Hi, upgraded to gradle 8.3/4 from 7.6 and started to get docker tag must have a task name error; gradleexception.

com.palantir.docker is 0.35.0 and docker section in build.gradle specifies name, files, dockerfile and buildArgs, as beforehand.
The tag is constructed by TeamCity as the branch name...

Any ideas ?

@oeresundsgruppen
Copy link
Author

Its a multi project build btw.

@oeresundsgruppen
Copy link
Author

It is coming from here PalantirDockerPlugin.goovy : and the branch name uses normal git branch naming e.g. bugfix/abc, so needs to be fixed in palantir docker plugin......

   } else if (name.contains(':') || name.contains('/')) {
        // Tags which with repo or name must have a task name
        throw new GradleException("Docker tag '${name}' must have a task name.")
    }

@oeresundsgruppen
Copy link
Author

This is even in a @deprecated method in groovy script..... Can it be removed ?

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

1 participant