Uploading RPM via Jenkins Plugin in FreeStyle jobs

classic Classic list List threaded Threaded
3 messages Options
Reply | Threaded
Open this post in threaded view
|  
Report Content as Inappropriate
star

Uploading RPM via Jenkins Plugin in FreeStyle jobs

hgomez
Hi to all,

I set up a YUM repository on our Artifactory and we're looking how to upload/publish RPMs produced by our FreeStyle job.

I tried to use Jenkins Artifactory Plugin but it didn't works yet.

A sample project is available here : http://devops-incubator.googlecode.com/svn/trunk/rpm-packaging/myjenkins

./build.sh is used in free style job

RPM are built on RPMS/noarch sub dir in job workspace.

Any ideas ?

Thanks
Reply | Threaded
Open this post in threaded view
|  
Report Content as Inappropriate
star

Re: Uploading RPM via Jenkins Plugin in FreeStyle jobs

Noam Y. Tenne
Hi,

The Jenkins Artifactory plugin can (momentarily) only deploy files that were produced as part of an Ant/Gradle/Maven build (also in freestyle mode).
But by issuing a simple curl PUT command, you can deploy your produced RPMs using Bash too; the command should look something like this:

curl -X PUT -u user:password --data-binary @/absolute/path/to.rpm "http://myhost/artifactory/yum-enabled-repo/some.rpm"

As an example, we've published on our github some Bash scripts that perform copies and build promotions of RPMs in Artifactory (we use these scripts for our YUM demo).

HTH,
Noam

On Thu, Jan 12, 2012 at 10:27 AM, hgomez <[hidden email]> wrote:
Hi to all,

I set up a YUM repository on our Artifactory and we're looking how to
upload/publish RPMs produced by our FreeStyle job.

I tried to use Jenkins Artifactory Plugin but it didn't works yet.

A sample project is available here :
http://devops-incubator.googlecode.com/svn/trunk/rpm-packaging/myjenkins

./build.sh is used in free style job

RPM are built on RPMS/noarch sub dir in job workspace.

Any ideas ?

Thanks

--
View this message in context: http://forums.jfrog.org/Uploading-RPM-via-Jenkins-Plugin-in-FreeStyle-jobs-tp7178919p7178919.html
Sent from the Artifactory - Users mailing list archive at Nabble.com.

------------------------------------------------------------------------------
RSA(R) Conference 2012
Mar 27 - Feb 2
Save $400 by Jan. 27
Register now!
http://p.sf.net/sfu/rsa-sfdev2dev2
_______________________________________________
Artifactory-users mailing list
[hidden email]
https://lists.sourceforge.net/lists/listinfo/artifactory-users


------------------------------------------------------------------------------
RSA(R) Conference 2012
Mar 27 - Feb 2
Save $400 by Jan. 27
Register now!
http://p.sf.net/sfu/rsa-sfdev2dev2
_______________________________________________
Artifactory-users mailing list
[hidden email]
https://lists.sourceforge.net/lists/listinfo/artifactory-users
Reply | Threaded
Open this post in threaded view
|  
Report Content as Inappropriate
star

Re: Uploading RPM via Jenkins Plugin in FreeStyle jobs

hgomez
> Hi,
>
> The Jenkins Artifactory plugin can (momentarily) only deploy files that were
> produced as part of an Ant/Gradle/Maven build (also in freestyle mode).
> But by issuing a simple curl PUT command, you can deploy your produced RPMs
> using Bash too; the command should look something like this:
>
>
> curl -X PUT -u user:password --data-binary @/absolute/path/to.rpm
> "http://myhost/artifactory/yum-enabled-repo/some.rpm"
>
> As an example, we've published on our github some Bash scripts that perform
> copies and build promotions of RPMs in Artifactory (we use these scripts for
> our YUM demo).

Perfect !

Thanks, I'll study it right now.

Thanks

------------------------------------------------------------------------------
RSA(R) Conference 2012
Mar 27 - Feb 2
Save $400 by Jan. 27
Register now!
http://p.sf.net/sfu/rsa-sfdev2dev2
_______________________________________________
Artifactory-users mailing list
[hidden email]
https://lists.sourceforge.net/lists/listinfo/artifactory-users
Loading...