Sharing build artifacts between jobs in Hudson

前端 未结 8 1131
陌清茗
陌清茗 2020-12-13 13:48

I\'m trying to set up our build process in hudson.

Job 1 will be a super fast (hopefully) continuous integration build job that will be built frequently.

Job

8条回答
  •  萌比男神i
    2020-12-13 14:43

    I agree that the current copy files/artifact/workspace between jobs manually is less than elegant.

    Also, I found it wasteful space/timewise to have to archive huge tgz/zip files.. In our case, these files were huge (1.5G) and took a long time to pack/archive/fingerprint/unpack.

    So I settled with a slightly optimised variant of the same:

    • Job 1/2/3 all check out/clone the same source repository, but
    • Job 1 only packs files that are actually build artifacts
      • with Git makes this easy and fast by git ls-files -oz, not sure about others SCMs
    • use Copy Artifact plugin to transfer files
    • This reduces the those files to a 1/3 size in our case -> speedup, less space wasted

提交回复
热议问题