Questions tagged [artifact-deployer]

ArtifactDeployer plugin enables you to archive build artifacts to any remote locations such as to a separate file server (outside of JENKINS_HOME directory).

History and Objectives

By default, Jenkins archives artifacts generated by the build. These artifacts are stored in the JENKINS_HOME directory with all other elements such as job configuration files.
There is no separation between infrastructure elements, project elements and outputs.
It is often considered to be a bad practice and it doesn't help to manage JENKINS_HOME directory from an administrator point of view (backup issues, etc). And for now, we can't change the 'Archived artifacts' location.

ArtifactDeployer plugin enables you to archive build artifacts to any remote locations such as to a separate file server (outside of JENKINS_HOME directory).

There are many other Jenkins plugins close to ArtifactDeployer such as CopyArtifact plugin or CopyArchiver plugin for publishing artifacts from Jenkins resources (from the current workspace, from the old builds of the same job or other jobs, ...) to remote locations with the protocol file:// There are also others plugins for managing other protocols such as ftp://, ssh:///.

But none of these plugins provides a common way to manage the deployment.

ArtifactDeployer is a complete alternative to the built-in Jenkins feature Archiving artefacts and it is aimed at providing an uniform deployment mechanism.

Features

  • Copies build artefacts from the workspace to a remote location shared on the build processor node
  • Provides links to archived artefacts from the job status page
  • Deletes on demand archived artifacts when the build is removed

Limitations

  • Only file deployment is supported
  • For downloading deployed artifacts, remote location must be accessible from the Jenkins master
  • Jenkins process must have the right permissions to write in the specified location
15 questions
4
votes
2 answers

Jenkins Publishing to SharePoint

I'm working on a small project that requires the copying of a git repository of markdown files to a SharePoint directory. I'm using Jenkins for the project and now I've run into issues. I'm new to Jenkins but I found ArtifactDeployer's post-build…
Dinani
  • 568
  • 1
  • 7
  • 11
3
votes
2 answers

I want to get the artifact version deployed by Jenkins

I run maven deploy as a step (using maven build step) and the artifact is deployed with a timestamp. I now want to create a docker image which has the deployed artifact and the docker image is tagged with the artifact timestamp. It is a very common…
Kumar Mani
  • 151
  • 2
  • 11
2
votes
0 answers

repository element was not specified in the POM inside distributionManagement

I am setting up the JFrog Artifactory for our artifact management (maven). I copied the settings.xml to ~/.m2 and all artifact downloads working fine. But when I try to deploy the artifacts from my webapp I am getting the below error. [ERROR] Failed…
Rajeshkumar
  • 815
  • 12
  • 35
1
vote
0 answers

Jenkins Pipeline - How to copy artifacts to remote location

I'm currently in the process of converting a freestyle job to a pipeline and have a build step that uses the ArtifactDeployer to deploy files from one directory to a remote location. The ArtifactDeployer plugin on my freestyle job only has couple of…
mindparse
  • 6,115
  • 27
  • 90
  • 191
1
vote
0 answers

Unable to apply artifacts from Azure portal

From the Azure portal, I am trying to apply artifacts to the servers. I am receiving a timeout with the following error (network engineers are saying this is not firewall related): • NAME linux-java • REPOSITORY Public Repo • …
tzdarko
  • 11
  • 2
1
vote
0 answers

No artifacts found that match the file pattern in jenkins configuraion

I have a .net class library and configuring that library to the Jenkins. I want to copy the new build dll to the bin directory of the my workplace (F:/Projects/Utility/bin/Release). I have mentioned the path of "Files to archive" to…
Pankaj Saha
  • 869
  • 3
  • 17
  • 37
1
vote
1 answer

Copy a single file from workspace in jenkins to another folder

I want to copy a single file from a folder in Jenkins workspace to an another folder. Currently I tried to do the same with Artifacts Deployer plugin . But It's copying the entire folder structure to destination folder. As below I just want to…
Midhun Murali
  • 2,089
  • 6
  • 28
  • 49
0
votes
1 answer

GitLab-runner fails to finish successfully due to "No such file or directory" error

I am using laravel-deployer package for deployment my project on my server. I have the following gitlab-ci file: stages: - build - test - deploy image: lorisleiva/laravel-docker:7.4 .init_ssh: &init_ssh | eval $(ssh-agent -s) echo…
0
votes
1 answer

How to make jfrog artifactory server as central repository for our project?

I am writing a springboot application, which has dependencies of springboot. I want to keep one copy of these dependency into JFrog Artifactory server, so next time dependency will be fetched from JFrog Artifactory server then maven central.
Lalchand Mali
  • 211
  • 1
  • 2
  • 11
0
votes
1 answer

Build a Freestyle project using Jenkins Pipeline Job

I am trying to build a code which doesn't have a pom.xml. Also i want to deploy the same to artifactory. Is there a way to build such a project using pipeline job. I can use freestyle job for building the above project. But I was hoping if there is…
0
votes
1 answer

How to send artifacts back to master from EC2 slave

I'm building my Continuous Delivery System with Jenkins. To avoid spending a lot of money I set up my jenkins to spawn a new EC2 m4.large instance when a new push is made to Bitbucket. In this way I only pay when I work. The problem now is that my…
0
votes
1 answer

How to extract and export artifact files (SNAPSHOT.jar) from Jenkins to a network drive

My team has code being built and tested in Jenkins and when the build process is done Jenkins produces a SNAPSHOT.jar file. I need to unpacked the snapshot.jar file and send the extracted files and folders to a network drive. What is the best way to…
0
votes
1 answer

Jenkins ERROR: No artifacts found that match the file pattern "32-bit\*.*, 64-bit\*.*". Configuration error?

I have few Jenkins jobs running and producing two artifacts with wildcard pattern "32-bit*., 64-bit*.".But one of the job is showing an error while running the build. ERROR: No artifacts found that match the file pattern "32-bit*., 64-bit*.".…
0
votes
1 answer

Jenkins: Add deployed artifacts to mail-ext template

We use ArtifactDeployer plugin to copy some files on a remote location. Is it possible to include the download links to our mail-ext mail template? I fiddled around a bit with the HTML jelly template but I could not get it to work. Thanks
Ciprian
  • 3,533
  • 1
  • 18
  • 22
-2
votes
1 answer

Uploading local maven repository to archiva

I am setting up a local repository using Apache Archiva. After setting up now I need to copy the libraries that got downloaded into my local maven repository into archiva. Currently I am manually copying it but it is very tedious process and I am…
Mayuran
  • 669
  • 2
  • 8
  • 39