artifactory

Jenkins + Gradle + Artifactory: Couldn't read generated build info

假装没事ソ 提交于 2019-12-02 11:02:43
I'm trying to push my artifacts to Artifactory with Jenkins Pipeline, which call Gradle tool. I am following the examples published on GitHub: Example1 Example2 My Jenkins Pipeline script: stage('Perform Gradle Release') { //ssh-agent required to perform GIT push (when tagging the branch on release) sshagent([git_credential]) { sh "./gradlew clean release unSnapshotVersion -Prelease.useAutomaticVersion=true -Prelease.releaseVersion=${release_version} -Prelease.newVersion=${development_version}" } // Create an Artifactory server instance def server = Artifactory.server('my-artifactory') //

Running two versions of java at same time [closed]

青春壹個敷衍的年華 提交于 2019-12-02 08:14:11
I have to use two versions of java (1.6.21 and 1.7).My company's code is dependent on 1.6_21 and we are planning to use artifactory. We are testing artifactory locally.But artifactory needs java 1.7 or higher.I want my default java home to point to 1.6_21 and for artifactory it should be 1.7. But the problem is as soon as I install java 7,it sets itself as default.I have read many posts that explain how to manage two versions of java,but my artifactory and eclipse have to run at same time. Please help!! You'll need to use batch script (Windows) or a shell script (Linux) to execute artifactory,

How to move artifacts from a repository to another repository?

こ雲淡風輕ζ 提交于 2019-12-01 21:17:29
My project now getting artifacts from the Central Repository. Now I created new Artifact repository and want my project getting artifacts from that. How can I download all artifacts from previous central repository to new created repository? Maven repository managers Nexus, Artfactory, Archiva are not designed to mirror the content of remote repositories. They cache any files retrieved by users, and this improves build efficiency and insulates you against network outages. Like any cache the challenge is keeping up to date. What all the Maven repository managers do is download an incremental

Rainbond源码构建JAVA项目选取JDK

寵の児 提交于 2019-12-01 20:24:28
默认提供的JDK Rainbond官方提供了多个版本的OpenJDK供用户使用。这些OpenJDK的安装包托管于好雨科技官方的OSS(对象存储)中。能够接入互联网的Rainbond平台,可以通过rbd-repo组件的代理获取这些资源,而不用人工干预。 用户通过WEB界面配置,或在源码根目录创建 system.properties ,设定 java.runtime.version 来指定OpenJDK版本。 WEB界面设置的值优先级高于 system.properties 中设定的值。 WEB界面指定: system.properties 指定方式: # system.properties 目前Rainbond能识别的版本值为11,10,1.9,1.8,1.7,1.6 java.runtime.version=1.8 在不做出其他任何调整的情况下,在Rainbond执行源码构建时,会获取以下版本的OpenJDK资源: OpenJDK版本 资源地址 1.8(默认) http://lang.goodrain.me/jdk/cedar-14/openjdk1.8.0_201.tar.gz 1.6 http://lang.goodrain.me/jdk/openjdk1.6.0_27.tar.gz 1.7 http://lang.goodrain.me/jdk/cedar-14

Maven - Transitive dependencies are not resolved for artifact deployed on Artifactory

天大地大妈咪最大 提交于 2019-12-01 19:57:52
I have two projects - A and B, where A is dependent on B. I package B as jar and deploy it on a maven server (artifactory), and then include that jar as a normal dependency on project A in pom file. jar file of B shows up in the Maven Dependencies of project A, but dependencies of project B are not shown in dependency hierarchy. It is causing class not found exception for dependencies of B. However, my project A and B and in same eclipse workspace. When I open project B, project A starts referencing the project B from the workspace instead of remote repository and everything works well. This

Maven - Transitive dependencies are not resolved for artifact deployed on Artifactory

让人想犯罪 __ 提交于 2019-12-01 18:21:22
问题 I have two projects - A and B, where A is dependent on B. I package B as jar and deploy it on a maven server (artifactory), and then include that jar as a normal dependency on project A in pom file. jar file of B shows up in the Maven Dependencies of project A, but dependencies of project B are not shown in dependency hierarchy. It is causing class not found exception for dependencies of B. However, my project A and B and in same eclipse workspace. When I open project B, project A starts

Upload an RPM to Artifactory from Gradle

回眸只為那壹抹淺笑 提交于 2019-12-01 18:16:21
How can I upload an RPM file to Artifactory using Gradle? Gradle always uploads the files using a maven-style directly layout which is inappropriate for a YUM repository. The issue here is that Gradle insists on uploading everything in a maven-style directory format of group-id/version/artifact , while a yum repository needs a flat layout. There are two approaches here - using the Artifactory plugin or Gradles newer publishing mechanism. I could only get this to work with the latter. I assume here that you're using the Gradle ospackage plugin and already have an RPM build created. In my case

Upload an RPM to Artifactory from Gradle

风格不统一 提交于 2019-12-01 17:57:54
问题 How can I upload an RPM file to Artifactory using Gradle? Gradle always uploads the files using a maven-style directly layout which is inappropriate for a YUM repository. 回答1: The issue here is that Gradle insists on uploading everything in a maven-style directory format of group-id/version/artifact , while a yum repository needs a flat layout. There are two approaches here - using the Artifactory plugin or Gradles newer publishing mechanism. I could only get this to work with the latter. I

How can I download last artifact in Artifactory?

情到浓时终转凉″ 提交于 2019-12-01 05:26:05
I have some artifacts in Artifactory (OpenSource): I can download an artifact from using jfrog CLI : jfrog rt config --user=admin --password=**** --url=http://foo:8081/artifactory jfrog rt download testproject/01_Develop/01_CI/HPCC-Package-70.zip --flat=true How can I download the LATEST(highest number) artifact? You can use the JFrog Cli search command . jfrog rt s "testproject/01_Develop/01_CI/HPCC-Package-*.zip" The search command will return a list of paths which you can then sort using external tools such as jq. JFrog CLI recently started supporting 3 new options from many of the

How do you manage the licenses of the dependencies (libraries) of your project? [closed]

我们两清 提交于 2019-12-01 03:48:51
I would like to know if the Nexus repository manager includes a License manager like Artifactory (with this plugin : http://wiki.jfrog.org/confluence/display/RTF/License+Control ). If there is no way to do that in Nexus via a plugin, how do you manage the licenses of the dependencies of your project (with maven) ? e.g. for a commercial project, I can't include a GPL library into the final artifact (.jar, .war, etc.). The Artifactory functionality can be emulated using the Maven license validator plugin http://code.google.com/p/maven-license-validator-plugin/ The practical problem with both