Is there a way to keep Hudson / Jenkins configuration files in source control?

后端 未结 10 822
难免孤独
难免孤独 2020-11-29 15:45

I am new to Hudson / Jenkins and was wondering if there is a way to check in Hudson\'s configuration files to source control.

Ideally I want to be able to click some

10条回答
  •  醉话见心
    2020-11-29 16:20

    To manually manage your configuration with Git, the following .gitignore file may be helpful.

    # Miscellaneous Hudson litter
    *.log
    *.tmp
    *.old
    *.bak
    *.jar
    *.json
    
    # Generated Hudson state
    /.owner
    /secret.key
    /queue.xml
    /fingerprints/
    /shelvedProjects/
    /updates/
    
    # Tools that Hudson manages
    /tools/
    
    # Extracted plugins
    /plugins/*/
    
    # Job state
    builds/
    workspace/
    lastStable
    lastSuccessful
    nextBuildNumber
    

    See this GitHub Gist and this blog post for more details.

提交回复
热议问题