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

distTar does not pick up the correct serviceName #203

Open
cihati opened this issue Mar 20, 2017 · 0 comments
Open

distTar does not pick up the correct serviceName #203

cihati opened this issue Mar 20, 2017 · 0 comments

Comments

@cihati
Copy link

cihati commented Mar 20, 2017

After upgrading to sls-packaging 2.x, our publish task started to fail for Postgate.

As an example, when we run ./gradlew distTar an artifact named /Users/cihati/dev/postgate/postgate-distribution/build/distributions/postgate-0.6.0-2-gc2b4bf9.dirty.sls.tgz is created. However, when running ./gradlew postgate-distribution:publish, we get an error:

:postgate-distribution:publishArtifactoryPublicationToInternal-distRepository FAILED

FAILURE: Build failed with an exception.

* What went wrong:
Execution failed for task ':postgate-distribution:publishArtifactoryPublicationToInternal-distRepository'.
> Failed to publish publication 'artifactory' to repository 'internal-dist'
   > Invalid publication 'artifactory': artifact file does not exist: '/Users/cihati/dev/postgate/postgate-distribution/build/distributions/postgate-distribution-0.6.0-2-gc2b4bf9.dirty.sls.tgz'

Please note that we define serviceName as postgate inside postgate-distribution/build.gradle -- however this isn't being picked up. As a workaround, we explicitly set tasks.distTar.baseName = 'postgate', but this needs to be fixed inside sls-packaging. Per @uschi2000 the problem is that distTar gets the serviceName after evaluation phase (

), but publish task gets it before ( https://github.palantir.build/foundry/postgate/blob/develop/postgate-distribution/build.gradle#L41 )

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