English 中文(简体)
是否有一位作者能够自行查阅存档的艺术品?
原标题:Can a Jenkins build access the archived artifacts from itself?
  • 时间:2012-01-13 15:06:09
  •  标签:
  • jenkins

我是使用Jenkins的,在我大楼结束时,有“烧毁艺术品”的一步,将其归档成一只手脚。

我不使用这一步骤,而是想用文字把手工艺推向建筑末的遥远服务器。 服务器Im推动在文件上使用REST AP /HTTP PUT申请。

请注意,我看看一看同一建筑中产生的艺术品。 因此,如果我站在第5号建筑上,我就希望第5号建筑中的工艺品,而不是第4号建筑。

是否有办法用手法查阅这件手稿,其基础是打造的。

我需要远距离上载,不要再做这项工作。

最佳回答

There is no way that I have found to access the "Archive the Artifacts" package of the build that generates it. This step always occurs last in the build. Accessing the URL prior to the build ending (during the build via script for example) results in a blank zip file. To get around this limitation, I m making a second linked build job to grab the zip and run my script to deploy it.

问题回答

您可安装“Publish Over... plugins,以便在建筑结束时卸下你的艺术品。

The goal of the Publish Over plugins is to provide a consistent set of features and behaviours when sending build artifacts ... somewhere.

See also the full list of “upload” plugins , for other methods of Publishing You artifacts.

和@Christopher一样,你可以使用Publish Over plugins on the Jenkins Plugins page,将艺术品上的任何部分上载。

If you want to access the archived zip file from within the build itself, you can use the following link to access it:

For example:

  • server = myserver.com
  • job name = myproject
  • artifact = del/project.zip

Your URL would be:

http://myserver.com/job/myproject/lastSuccessfulBuild/artifact/del/project.zip

EDIT:问题已经改变。 无论如何,这样做是为了在目前情况下获得先前建筑的工艺。





相关问题
Reuse agent without needing to declare it multiple times

I m trying to define a agent in a jenkinsfile once, but use it in multiple stages without needing to fully declare it for each stage. As can be seen, I am using a stage to figure out which docker ...

在Jenkins Templating引擎实施版本

我们正计划利用JTE(Jenkins Templating的发动机)在我们org建造管道。 有许多管道将使用这一模板。 可能的话,模板的任何改动都会中断......

Hudson gitorious plugin?

Has anyone integrated a local copy of gitorious with Hudson? Specifically, linking the sha1 on Hudson web page back to the gitorious web page.

Problem with Hudson-JIRA-Perforce integration

I m looking at using the Hudson JIRA plugin to post a JIRA comment on each build. The SCM I m using is perforce which is already linked to the JIRA tasks using perforce jobs. I can see that the JIRA ...

Two Hudson Masters on the same Windows Server

I want to setup two Hudson Masters on the same Hardware. This will make administering Hudson easier, since both servers are used by two different (and independent) teams. So far I tried to install ...

Using Hudson and build steps with multiple git repositories

I m trying out Hudson to replace our current Buildbot setup. I installed the git plugin. Our current setup is like: ssh://server:/repo/test_framework.git ssh://server:/repo/project_a.git Now, to ...

热门标签