I want to publish my Gitlab project's(not a maven project) artifact to JFrog Artifactory. The artifact size is 4.2 GB.
I searched for this but mostly got links to publish Gitlab Maven project to Artifactory. My project is not a maven project.
I have a requirement to keep all source code in Gitlab and artifacts(.war, .tar.gz) in Artifactory.
How do I achieve this?
It sounds like you're looking for Git LFS. This is an extention to Git that allows your Gitlab repository to track artifacts without actually storing them in the repository, instead using some external filestore or artifact management server.
Artifactory supports Git LFS repositories, and you can find the documentation for setting it up here.
Related
Does enyone know how to clear cache of remote repository in Artifactory for loading artifacts (for example from maven repo) as well as in clean repository?
I tryed to find in Artifactory plugins, I found cleanup plugin but it cleans all repositories according description but I have to clean exact repo
Zap Cache is the option available with the repository itself, by design, to achieve this requirement.
Does JOOQ push the latest non-stable builds to maven central? Or is there some snapshot repo I need to add to pom.xml?
Does JOOQ push the latest non-stable builds to maven central?
Snapshot builds are offered only to paying customers, available from here: https://www.jooq.org/download/versions
Or is there some snapshot repo I need to add to pom.xml?
The above website offers ZIP file downloads. The ZIP file contains two scripts:
maven-install.sh and maven-install.bat to install the snapshot artifacts locally, to your local repository (e.g. ~/.m2)
maven-deploy.sh and maven-deploy.bat to deploy the snapshot artifacts to your artifact repository
There are other options, e.g. using the maven-install-plugin in your build, of course, or build and install the snapshots directly from source code
How do I set up GitLab runner to pull from a private NuGet repo on build of my project? For example I have a project using a package from Telerik. When I created the yaml file and tell the CI to build it fails with error unable to find package Telerik.UI.for.Blazor. No packages exist with this id in source(s): nuget.org. I also have a private repo on one of our company servers that I would need to pull packages from.
I have found a solution to this, not sure it is the best solution. I added a NuGet.config file with the package source and credentials as suggested in these links.
https://docs.telerik.com/aspnet-core/getting-started/first-steps-cli
https://learn.microsoft.com/en-us/nuget/reference/nuget-config-file#example-config-file
The project now pulls the dll from Telerik and builds. Only problem is my Telerik creds are now in GitLab.
I have a fork of apache spark on github that I build from.
I have a maven repository that our company uses to manage dependencies.
Suppose the url of this maven repository is https://xyz.abc.com/maven.
If I run a command like
./build/mvn -Pyarn -Phadoop-2.6 -Dhadoop.version=2.6.5 -DskipTests install
Then all the jars get deployed to my local maven repository, but what I would really like is for them to be deployed to the repository mentioned above.
How can I do that? Do I need to modify certain files or set environment variables? Do I need to add a credential file somewhere?
I also looked into doing it with sbt, but I could not figure out how to do it with that either.
You want to publish artifact build by maven to remote repository (https://xyz.abc.com/maven).
Take a look at this guide for required configuration.
I installed GithubHQ in one server and GitlabCI in another server. But now I need do integration between GitlabHQ and GitlabCI. When I go to add a new project in GitlabCI he requests a path .git project, but the project is on another server where the GitlabHQ.
I tried use the path remote, like: http://[domain-name]/[user]/[project].git but he not accept.
I researched about how GitlabCI search the path and found that it does not support remote paths. He use "Rugged::Repository.new(path)" just to get the project on the server.
Does anyone know a way to use paths .git remotes in GitlabCI?
As illustrated by Issue 36:
Actually the purpose of gitlab-ci implies that you install it on deployment point. You install it where you deploy your project
So you are supposed to use a local non-bare repo.
You could, in your case, clone your remote repo on the gitlab-ci server, and use that local path.
In order to build an integration between gitlab and gitlab-ci:
add gitlab_ci user to git group for read access
clone your project via git clone /home/git/repositories to somewhere like /home/gitlab_ci/projects/...
add this project to ci.
setup gitlabhq to use ci service
Thats all.
On gitlab push it will trigger gitlab ci to make git fetch origin, so testing repo will be always up to date.