-
Notifications
You must be signed in to change notification settings - Fork 160
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
403 for build-info-extractor-gradle-4.15.2-uber.jar #547
Comments
Thanks for asking this question @sebasira. |
Thanks for your fast reply, I was assuming that but I wanted confirmation. Sadly I can not update to the any version of jFrog CLI above1.39.7, because since v1.40 Android .aar artifacts are not uploaded. Maybe you can take a look at this to help me out: jfrog/jfrog-cli#880. Which is the same as #406, but you'll find more info in the jFrog CLI repo. Thank you 🙏 |
@sebasira I saw this behavior with 1.40, I also assume it has to do with sunsetting jcenter. You can override the download target of these jars with
Where in this case artifactory is the repo defined with my |
@DanielJRutledge thanks for your input. I'm using a GitLab YAML script to upload the artifacts. Here's my script: image: jangrewe/gitlab-ci-android
before_script:
- export GRADLE_USER_HOME=$(pwd)/.gradle
- chmod +x ./gradlew
cache:
key: ${CI_COMMIT_REF_SLUG}
paths:
- .gradle/
variables:
GRADLE_VERSION: "6.8.3"
ARTIFACT_NAME: "my-artifact-name"
GRADLE_OPTS: "-Dorg.gradle.daemon=false"
stages:
- deploy
.connect_artifactory: &connect_artifactory |
curl -fL https://getcli.jfrog.io | sh
./jfrog config add --artifactory-url=$ARTIFACTORY_URL --user=$ARTIFACTORY_USER --password=$ARTIFACTORY_PASS --interactive=false
./jfrog c show
number=$CI_JOB_ID
.upload_artifact: &upload_artifact |
./jfrog rt gradle-config --use-wrapper=true --repo-resolve=$GRADLE_REPO_KEY --server-id-resolve=Default-Server --repo-deploy=$GRADLE_REPO_KEY --server-id-deploy=Default-Server
./jfrog rt gradle clean assembleRelease artifactoryPublish -b build.gradle --build-name=$ARTIFACT_NAME --build-number=$CI_JOB_ID
# This docker image does not have Gradle installed, so install it
.install_gradle: &install_gradle |
curl -L https://services.gradle.org/distributions/gradle-$GRADLE_VERSION-all.zip -o gradle.zip
unzip -q gradle.zip
export GRADLE_HOME=$(pwd)/gradle-$GRADLE_VERSION
export PATH=${GRADLE_HOME}/bin:${PATH}
echo $GRADLE_HOME
echo $PATH
gradle -v
publish:
stage: deploy
cache: {}
script:
# Download and Install Gradle
- *install_gradle
# Connect to JFrog Artifactory
- *connect_artifactory
# Replace the repository name in the configuration.yml to the correct one.
- sed -i 's,GRADLE_REPO_KEY,'"$GRADLE_REPO_KEY"',g' configuration.yaml
# Upload artifact to JFrog Artifactory
- *upload_artifact
I'm not an expert on this area, that's why I need more guidance. Should I call those exports before calling Thank you very much! |
Yes, you'd be running before your gradle config. In your case, you'd be looking at
You'd be sending it through the same repo you using for your build config. This assumes you have jcenter in your gradle repo. |
Thank you very much! Now I can upload artifacts to Artifactory again! I'm closing this issue |
I'm using jFrog CLI v1.39.7 to upload an Android
.aar
library to Artifactory (because newer version do not support yet) and it was working fine, but now I get this message:Have you lock the access to that file?
The text was updated successfully, but these errors were encountered: