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

Fabric8 CRD deploy action fails #4035

Closed
squakez opened this issue Feb 7, 2023 · 7 comments · Fixed by #4052
Closed

Fabric8 CRD deploy action fails #4035

squakez opened this issue Feb 7, 2023 · 7 comments · Fixed by #4052
Labels
area/continuous integration Related to CI and automated testing kind/bug Something isn't working

Comments

@squakez
Copy link
Contributor

squakez commented Feb 7, 2023

Due to

Error:  Error executing Maven.
Error:  The specified user settings file does not exist: /home/runner/work/camel-k/camel-k/java/.github/asf-deploy-settings.xml
Error: Process completed with exit code 1.
@squakez squakez added kind/bug Something isn't working area/continuous integration Related to CI and automated testing labels Feb 7, 2023
@squakez
Copy link
Contributor Author

squakez commented Feb 9, 2023

Now the problem looks to be an auth issue:

Error:  Failed to execute goal org.apache.maven.plugins:maven-deploy-plugin:2.8.2:deploy (default-deploy) on project camel-k-crd: Failed to deploy artifacts: Could not transfer artifact org.apache.camel.k:camel-k-crd:pom:1.17.0-20230209.025159-1 from/to apache.snapshots.https (https://repository.apache.org/content/repositories/snapshots): authentication failed for https://repository.apache.org/content/repositories/snapshots/org/apache/camel/k/camel-k-crd/1.17.0-SNAPSHOT/camel-k-crd-1.17.0-20230209.025159-1.pom, status: 401 Unauthorized -> [Help 1]

We probably need to ask INFRA to enable the correct authorization to push artifacts.

squakez added a commit that referenced this issue Feb 9, 2023
squakez added a commit that referenced this issue Feb 9, 2023
squakez added a commit to squakez/camel-k that referenced this issue Feb 10, 2023
squakez added a commit that referenced this issue Feb 10, 2023
@squakez
Copy link
Contributor Author

squakez commented Feb 10, 2023

Crendentials required: https://issues.apache.org/jira/browse/INFRA-24183

@squakez
Copy link
Contributor Author

squakez commented Feb 13, 2023

The action is now working correctly. But we are publishing only the pom, and not the jar dependency with the generated source. See https://github.com/apache/camel-k/actions/runs/4158710110/jobs/7194113611#step:3:16251

@andreaTP can you please have a look? I think we miss some step to bundle those generated source.

@andreaTP
Copy link
Contributor

@squakez can reproduce, will try to fix 👍

@squakez
Copy link
Contributor Author

squakez commented Feb 13, 2023

Action to check the fix running in https://github.com/apache/camel-k/actions/runs/4161998675/jobs/7200626987 - let's wait a couple of hours as it also run smoke tests 🤞

@squakez
Copy link
Contributor Author

squakez commented Feb 13, 2023

Cool, it seems the action completed successfully and the Jar is deployed as expected! @andreaTP please, double check on your side and if everything is published as expected in the snapshot, we may add a process to include it in the next release cut and have a first fixed version available within 1.12.0.

@andreaTP
Copy link
Contributor

@squakez thanks a lot for bringing this forward!
Proposed a couple of minor adjustments in #4053 but everything looks good to me 👍

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
area/continuous integration Related to CI and automated testing kind/bug Something isn't working
Projects
None yet
Development

Successfully merging a pull request may close this issue.

2 participants