Skip to end of metadata
Go to start of metadata

Plugin Information

View /userContent in Git on the plugin site for more information.

Jenkins has a mechanism known as "User Content", where administrators can place files inside $JENKINS_HOME/userContent, and these files are served from http://yourhost/jenkins/userContent. This can be thought of as a mini HTTP server to serve images, stylesheets, and other static resources that you can use from various description fields inside Jenkins.

This plugin exposes this this $JENKINS_HOME/userContent directory as a Git repository, allowing administrators to use git to push/pull changes and manage them with history.

Once this plugin is installed, see http://yourserver/jenkins/userContent.git in your browser for how to access this repository.

Changelog

Version 1.4 (Oct 14 2014)

  • Decoupled the dependency from Git client plugin to avoid LinkageErrors due to version incompatibility.

Version 1.1 (August 29)

  • Initial release
  • No labels

2 Comments

  1. Hi,

    maybe this is a dumb question but how do I set the credentials to be able to push as an administrator?

    I see to get in my jenkins log:

    Oct 24, 2014 11:10:08 AM org.eclipse.jetty.util.log.JavaUtilLog info
    INFO: While serving http://<jenkins server>/userContent.git/info/refs: hudson.security.AccessDeniedException2: anonymous is missing the Overall/Administer permission

    I have tried to add username and pasword to the url as 'http://username:password@jenkinsserver/userContetn.git' but it gives the same error.

    Our Jenkins server used LDAP authentication of users if that has something to do with it?

  2. I have the same question as Arnold Blaasmo.  I have installed the plugin, and it does serve content from the userContent directory as expected, but I'm unable to use git clone to retrieve the workspace.  It appears to be an ssh authentication issue leading me to believe that I need to push my id_rsa.pub into an authorized_keys file somewhere other than the default.  I have already pushed my public ken to the .ssh/authorized_keys file for the jenkins-ci server, but that does not help.

    Error Message
    Cloning into 'userContent'...
    Permission denied (publickey).
    fatal: Could not read from remote repository.
    
    Please make sure you have the correct access rights
    and the repository exists.
    

    Could you please update the wiki with the requirements for configuring the administrative permissions.

    Also, the URL described above (http://yourserver/jenkins/userContent.git) does not work. In fact, the url that jenkins recognizes is http://yourserver/userContent.git sans the jenkins directory. This may be a configuration specific issue.