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

jf rbc (release-bundle-create) is not working when using Artifactory projects #2874

Closed
lukaszkubisiak opened this issue Feb 13, 2025 · 2 comments · Fixed by #2884
Closed
Labels
bug Something isn't working

Comments

@lukaszkubisiak
Copy link

Describe the bug

root@e81d0d54be2c:/# jf rbc --signing-key=default-gpg-key --project gbq GBQ-$MODULE $BASE_REV 
16:04:05 [🔵Info] Trace ID for JFrog Platform logs: cde0227c30537ed3
16:04:05 [🚨Error] server response: 404 Not Found
{
  "errors": [
    {
      "status": 404,
      "message": "Build not found, name: local-gbq-test-dev, number: 12, repository: artifactory-build-info, started: null"
    }
  ]
}

root@e81d0d54be2c:/# env |sort | grep JFROG
JFROG_CLI_BUILD_NAME=local-gbq-test-dev
JFROG_CLI_BUILD_NUMBER=12
JFROG_CLI_BUILD_PROJECT=gbq

root@e81d0d54be2c:/# jf -v
jf version 2.73.3

It should use qbq-build-info instead of artifactory-build-info. It seems that it ignores project info

I tried to use parameters
--build-name=local-$CI_PROJECT_NAME-$CI_COMMIT_REF_NAME --build-number=$CI_JOB_ID --project=$JF_PROJECT
but then --project is ignored too!

I tried to find similar issues, but I've only found that there was similar issue in the past that --project was ignored in multiple cli commands.

Current behavior

jf rbc command ignores --project and/or JFROG_CLI_BUILD_PROJECT.
It searchs build info in artifactory-build-info repository instead of project-build-info repository

Reproduction steps

Step to reproduce

  1. Run ubuntu docker
  2. Execute scripts
apt-get update
apt-get upgrade -y
apt-get install -y curl zip

JFROG_PLATFORM_SERVER_ID=myArtifactory
JFROG_PLATFORM_URL=https://address.jfrog.io
JFROG_PLATFORM_USER=user
JFROG_PLATFORM_PASS=pass

CI_PROJECT_NAME=gbq-test
CI_COMMIT_REF_NAME=dev
CI_JOB_ID=12

ORG_PATH=com/company
MODULE=SDK
BASE_REV=1.0.0

TARGET_REPO=gbq-generic-dev-local
JF_PROJECT=gbq

# Install JFrog CLI
curl -fL https://install-cli.jfrog.io | sh
# Configure Artifactory server
jf config add $JFROG_PLATFORM_SERVER_ID --url=$JFROG_PLATFORM_URL --user=$JFROG_PLATFORM_USER --password=$JFROG_PLATFORM_PASS --interactive=false
# Ping artifactory
jf rt ping

#BUILD
echo "test $CI_JOB_ID" >> test.txt
zip $MODULE-$BASE_REV+$CI_JOB_ID.zip test.txt

# DEPLOY
jf rt u --project $JF_PROJECT --build-name local-$CI_PROJECT_NAME-$CI_COMMIT_REF_NAME --build-number $CI_JOB_ID $MODULE-$BASE_REV+$CI_JOB_ID.zip $TARGET_REPO/$ORG_PATH/$MODULE/$MODULE-$BASE_REV.zip 

# Publish the build info to Artifactory:
jf rt bp --project $JF_PROJECT local-$CI_PROJECT_NAME-$CI_COMMIT_REF_NAME $CI_JOB_ID 

# Create a release bundle
export JFROG_CLI_BUILD_PROJECT=gbq
export JFROG_CLI_BUILD_NAME=local-$CI_PROJECT_NAME-$CI_COMMIT_REF_NAME
export JFROG_CLI_BUILD_NUMBER=$CI_JOB_ID
jf rbc --signing-key=default-gpg-key GBQ-$MODULE $BASE_REV 

Expected behavior

I'd like to use jf rbc command to create release bundle using projects in artifactory

JFrog CLI version

2.73.3

Operating system type and version

Ubuntu 24.04.2 LTS

JFrog Artifactory version

Cloud

JFrog Xray version

No response

@lukaszkubisiak lukaszkubisiak added the bug Something isn't working label Feb 13, 2025
@EyalDelarea EyalDelarea linked a pull request Feb 25, 2025 that will close this issue
4 tasks
@bhanurp
Copy link
Collaborator

bhanurp commented Feb 27, 2025

@lukaszkubisiak, there is a new release which addresses this issue please use v2.74.0

@lukaszkubisiak
Copy link
Author

I can confirm It's working! So much thank you!
And by the way thanks for yarn4 issue too!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

Successfully merging a pull request may close this issue.

2 participants