有没有人以前从 Archiva 迁移到 Artifactory?我正在寻找一些指导,但无法在网上找到任何信息。
谢谢,克里斯
我正在寻找一个"存储库"来存储派生信息(构建工件).我们有一个存储库(目前是Mercurial)来存储我们的源代码.当某些东西被推送到源存储库时,代码会通过一个持续集成服务器,我们会进行增量构建,因此会更改一些dll.这应该添加到一些"存储库",以便每个人都可以使用该版本,而无需再次进行构建.我正在寻找以下功能:
什么符合这些要求?
我开发了小型 mvp 库,其中包含一些依赖项,例如 butterknife 和 glide,但是在它已经部署到我的私有工件之后,我的库中不包含所有依赖项,因此在使用此库时,我的项目中未解决所有依赖项。我是这个神器的新手,我错过了什么吗?
这是我的根 build.gradle :
buildscript {
repositories {
jcenter()
}
dependencies {
classpath 'com.android.tools.build:gradle:2.2.3'
// NOTE: Do not place your application dependencies here; they belong
// in the individual module build.gradle files
classpath "org.jfrog.buildinfo:build-info-extractor-gradle:4.0.1"
classpath 'com.neenbedankt.gradle.plugins:android-apt:1.8'
}
}
allprojects {
repositories {
jcenter()
}
}
task clean(type: Delete) {
delete rootProject.buildDir
}
Run Code Online (Sandbox Code Playgroud)
这是我的 build.gradle 模块:
apply plugin: 'com.android.library'
apply plugin: 'com.jfrog.artifactory'
apply plugin: 'maven-publish'
apply plugin: 'me.tatarka.retrolambda'
def libraryGroupId = 'com.pixilapps.pixilframework'
def libraryArtifactId = 'mvp' …
Run Code Online (Sandbox Code Playgroud) 错误日志:
For pattern: EMB5216_DO/DEVELOPER/SCTF/OUT/* 23 artifacts were found.
17:32:52 Deploying artifact:http://192.168.5.2:9081/artifactory/LTEV5/SCTF/232/sctf_usdpaa_eth.so
17:32:52 Deploying artifact:http://192.168.5.2:9081/artifactory/LTEV5/SCTF/232/framework.so
17:32:52 Deploying artifact:http://192.168.5.2:9081/artifactory/LTEV5/SCTF/232/changefiles/HLPR_MP_changefiles.txt
17:32:53 Deploying artifact:http://192.168.5.2:9081/artifactory/LTEV5/SCTF/232/sctf_om.so
17:32:53 Deploying artifact: http://192.168.5.2:9081/artifactory/LTEV5/SCTF/232/sctf_dd_major.so
Response received: <html> <head><title>413 Request Entity Too Large</title></head> 17:32:53 <body bgcolor="white"> <center><h1>413 Request Entity Too Large</h1></center> <hr><center>nginx/1.11.8</center> </body> </html>
17:32:53 Failed while reading the response from: PUT http://192.168.5.2:9081/artifactory/LTEV5/SCTF/232/sctf_dd_major.so;vcs.revision=3f031a59068b91dfcc6647d44584f07a0c734f93;build.timestamp=1501665987574;build.name=LTEV5_SCTF;build.number=232 HTTP/1.1
17:32:53 ERROR: remote file operation failed: /opt/workspace/LTEV5_SCTF at hudson.remoting.Channel@18021228:Channel to /192.168.5.101: java.io.IOException: Failed to deploy file. Status code: 413
Run Code Online (Sandbox Code Playgroud)
ci系统中没有nginx服务器,无法修改nginx.conf来解决这个问题。
jenkins 版本:2.46.2
artifactory 插件版本:2.12.2
artifactory-oss 版本:4.14
多谢
我有一个 Gradle 版本,它正在将 zip 存档发布到 Artifactory。一些下游用例需要来自 zip 工件的单个文件,因此下载整个存档效率低下。是否可以从 zip 存档中下载单个文件?
我怀疑创建存档的方式存在问题。如果这是一个线索,我无法通过 Web 查看器扩展 zip 内容。
这是用于创建 zip 工件的 Gradle 代码:
task buildZip(type: Zip) {
description 'Create the ZIP file'
classifier = System.env.CLASSIFIER
extension = 'zip'
def archive_loc = System.env.FOLDER_TO_ZIP
from archive_loc
}
Run Code Online (Sandbox Code Playgroud) 什么应该在"模式":Artifactory downloadSpec文件包含或跳过子文件夹
repo/folderA/folderB/*.xml
repo/folderA/*.xml
所以我需要从folderA或者文件夹的特定子文件夹下载xmls.通常我会编写::"pattern":"repo/folderA/**/*.xml"但这个模式无法在folderA下找到工件
我们jfrog-cli
用来将构建工件上传到Artifactory.
一旦上传,我想添加/更新构建工件属性.
我正在使用以下命令:
jfrog rt sp "<artifactory_server>/<repo>/<version>/*.zip" "Build1=test1"
Run Code Online (Sandbox Code Playgroud)
它返回如下:
[Debug] Artifactory response: 200 OK
[Info] Setting properties...
[Info] Done setting properties.
{
"status": "success",
"totals": {
"success": 0,
"failure": 0
}
}
Run Code Online (Sandbox Code Playgroud) 我们目前正在购买 Artifactory Pro 的许可证,但我们组织的采购过程需要时间。为了围绕 Artifactory 和 NPM 建立知识以使用 Artifactory,有没有办法使用通用存储库类型将 Artifactory 置于 NPM Registry 前面?
谢谢
我可以从网络界面中删除内容和版本。我需要从树中删除工件。我正在使用5.8.4,因此在《 Artifactory 5用户指南》中找不到任何参考。
我正在我的本地主机上尝试 Artifactory。尽管我已经按照他们的教程 来做他们的 Maven 示例,但我还是失败了 401 状态代码。这是我得到的错误:
[ERROR] Failed to execute goal org.apache.maven.plugins:maven-deploy-plugin:2.7:deploy (default-deploy) on project multi: Failed to deploy artifacts: Could not transfer artifact org.jfrog.test:multi:pom:3.7-20190117.083916-1 from/to snapshots (http://localhost:8081/artifactory/libs-snapshot-local): Failed to transfer file http://localhost:8081/artifactory/libs-snapshot-local/org/jfrog/test/multi/3.7-SNAPSHOT/multi-3.7-20190117.083916-1.pom with status code 401 -> [Help 1]
org.apache.maven.lifecycle.LifecycleExecutionException: Failed to execute goal org.apache.maven.plugins:maven-deploy-plugin:2.7:deploy (default-deploy) on project multi: Failed to deploy artifacts: Could not transfer artifact org.jfrog.test:multi:pom:3.7-20190117.083916-1 from/to snapshots (http://localhost:8081/artifactory/libs-snapshot-local): Failed to transfer file http://localhost:8081/artifactory/libs-snapshot-local/org/jfrog/test/multi/3.7-SNAPSHOT/multi-3.7-20190117.083916-1.pom with status code 401
Run Code Online (Sandbox Code Playgroud)
这是位于 /Users/my_user_name/.m2 中的 settings.xml 的内容:
<?xml …
Run Code Online (Sandbox Code Playgroud) artifactory ×10
archiva ×2
android ×1
binaryfiles ×1
gradle ×1
jenkins ×1
jfrog-cli ×1
maven ×1
nexus ×1
repository ×1