Git LFS setup in jenkins

前端 未结 2 1927
暗喜
暗喜 2021-02-09 01:45

I have an issue with git LFS use in Jenkins. What I am doing now is that

  1. I am building a war from maven through Jenkins that war contains a jar file
  2. thro
2条回答
  •  刺人心
    刺人心 (楼主)
    2021-02-09 02:34

    This can be done with "Pre SCM BuildStep” Plugin.

    1. Add “Pre SCM BuildStep” Plugin in Jenkins.
    2. In Job Configuration, Select the property Run buildstep before SCM runs in Build Environment Section and Click on Add Build Step, Select Execute Shell. Add below command in the shell, git lfs install
    3. In the Source Code Management section -> Additional Behaviours -> Add Git LFS pull after checkout.

    Reference Link

提交回复
热议问题