artifactory

How to build Groovy JAR w/ Gradle and publish it to in-house repo

瘦欲@ 提交于 2019-11-30 05:02:17
问题 I have a Groovy project and am trying to build it with Gradle. First I want a package task that creates a JAR by compiling it against its dependencies. Then I need to generate a Maven POM for that JAR and publish the JAR/POM to an in-house Artifactory repo. The build.gradle : apply plugin: "groovy" apply plugin: "maven-publish" repositories { maven { name "artifactory01" url "http://myartifactory/artifactory/libs-release" } } dependencies { compile "long list starts here" } // Should compile

How are snapshot and release repositories used differently?

亡梦爱人 提交于 2019-11-30 04:58:56
I understand that during development build artifacts are placed in the snapshot repository. When a product needs to go to QA for testing, do teams pull from the snapshot repository? Or do they do a full build, deploy to the release repository, and then give it to QA from there? Also, if my snapshots repository holds all the build artifacts from each build, how is this commonly cleaned up? I could see keeping the last 5 builds from the build server, but not every one. I'm using Artifactory if it helps. Mark O'Connor Opinions differ, here'e my approach: Snapshots are for Dev Typically used for

How to stop Maven/Artifactory from keeping Snapshots with timestamps

£可爱£侵袭症+ 提交于 2019-11-30 03:12:19
Due to disk space considerations I'd like to only ever keep one version of any snapshot in my repository. Rather than keeping multiple versions with timestamp suffixes e.g. ecommerce-2.3-20090806.145007-1.ear How can I set this up? Is this a build setting or repository (Artifactory) setting Thanks! Rich Seller The simplest (and recommended ) way is to use non-unique snapshots. If you must use unique snapshots, you can do this in Artifactory by specifying the <maxUniqueSnapshots> property on the <localRepository> definition in artifactory.config.xml For example: <localRepository> <key>snapshots

Delete jenkins builds during Promote / promotion step

只谈情不闲聊 提交于 2019-11-29 23:50:29
问题 Jenkins : Version 1.525 Jenkins Server URL : http://my.jenkins.server.com:9040 Linux Red Hat 5.3 Artifactory : Free version Artifactory Server URL : http://my.artifactory.server:8081/Artifactory I'm successfully able to build in Jenkins and upload artifacts to my Artifactory server under a respective repository. When a build occurs, the artifacts (ProjectA-1.0.0.25.tar.gz) goes to Artifactory under libs-snapshot-local repository. Here 1.0.0 is denoting Major, minor and interim version of a

How to use artifactId with different filename in dependencies

倾然丶 夕夏残阳落幕 提交于 2019-11-29 23:30:05
问题 Using Artifactory and Maven, how can one refer to a dependency with the correct group/artifactId/version but use a filname that differs from the artifactId-version.end style? The problem comes with a dll that cannot be renamed, and the mandatory? Artifactory naming convention. edit found one possible expensive way for this specific problem where the filename cannot include the dash-sign: creating a new Artifactory repository layout for which the pro-version is needed - so unfortunately, that

Using Artifactory's REST API to deploy jar file

为君一笑 提交于 2019-11-29 19:40:21
问题 Given this api documentation, how would I use HTTPBuilder and Groovy to construct my query? I've tried multiple things but I'm not getting it right. def http = new HTTPBuilder() http.request('http://artifactory:8888/libs-snapshot-local/my/jar/1.0/test-jar-1.0.jar', PUT, JSON ) { req -> body = [ uri: "http://artifactory:8888/libs-snapshot-local/my/jar/1.0/test-jar-1.0.jar", downloadUri: "http://artifactory:8888/libs-snapshot-local/my/jar/1.0/test-jar-1.0.jar", repo: "libs-snapshot-local", path

Artifactory Snapshot filename handling

跟風遠走 提交于 2019-11-29 19:05:55
问题 In our artifactory we have a snapshot repo defined to handle max 5 unique snapshots. We added -SNAPSHOT-.extension to the filename. SNAPSHOT gets also converted to timestamp. Build is done with gradle and artifact gets published with bamboo and artifactory plugin. A file deployed to artifactory ... inhouse-snapshots:com/example/project/subproject/trunk-SNAPSHOT/subproject-trunk-SNAPSHOT-79.amp becomes ... inhouse-snapshots:com/example/project/subproject/trunk-SNAPSHOT/subproject-trunk

How to download the latest artifact from Artifactory repository?

无人久伴 提交于 2019-11-29 19:05:09
I need the latest artifact (for example, a snapshot) from a repository in Artifactory . This artifact needs to be copied to a server (Linux) via a script. What are my options? Something like Wget / SCP ? And how do I get the path of the artifact? I found some solutions which require Artifactory Pro. But I just have Artifactory, not Artifactory Pro. Is it possible at all to download from Artifactory without the UI and not having the Pro-Version? What is the experience? I'm on OpenSUSE 12.1 (x86_64) if that matters. noamt Artifactory has a good extensive REST-API and almost anything that can be

Rainbond源码构建JAVA项目选取JDK

和自甴很熟 提交于 2019-11-29 18:31:55
默认提供的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

Artifactory aql: find builds of job with given property

南楼画角 提交于 2019-11-29 16:50:38
I am trying to query which build number(s) produced artifacts from build foo with artifact property vcs.Revision=aabbccddee123456 . In Artifactory 5.1.3. I was trying like this so far: curl -u user:apikey -i -X POST https://artifactory.foobar.com/artifactory/api/search/aql -H "content-type:text/plain" -T query.json query.json: builds.find( { "module.artifact.item.repo":"snapshot-local", "name":"foo", "module.artifact.item.@vcs.Revision":"aabbccddee123456" } ) However, none of these 3 lines seem individually correct: builds.find({"module.artifact.item.repo":"snapshot-local"}) returns nothing,