Deployment and development of Gogs+jenkins

Source: Internet
Author: User
This is a creation in Article, where the information may have evolved or changed.

Gogs is a language developed in the go language, it may be a bit difficult to start, but now it feels pretty good, both C language convenience concise, there are many integrated classes and methods.

The URL is this http://gogs.io/.

My words are installed in the source code, after all, this looks the simplest

And then it's installing Golang.

Golang installation is not difficult, yum install Golang

And then we're going to make three of variables

Export $GOPATH = ""

Export $GOROOT = "" Installation directory

Export $PATH = ""//with Yum installation generally not required,

Gopath is the path to your project

├──bin

├──pkg

└──src

├──code.google.com

└──github.com

Bin is the executable file , pkg is the directory to compile the generated files, and SRC is the source code directory

Click here to create a directory, command mkdir

Then it's the installation.

Go get-u github.com/gogits/gogs

This command is very useful in the language, it is simple to download the remote files, the existence of SRC

So you're not missing a file when you compile.

CD $GOPATH/src/github.com/gogits/gogs
Go Build

Bulid after the completion of the general success, but also need to change some configuration

[Server]
PROTOCOL = http
DOMAIN = 127.0.0.1; Here's your IP address, ifconfig.
Root_url = Http_port = 3000; 3000 is port, can

But there is a problem, you will find that the speed of the page is relatively slow, the problem is that he calls the js,css is from Google, so very slow, and sometimes will fail, so it is better to build directly on GitHub above the project, change the following this line

Offline_mode = True


And then./gogs Web-c Conf/app.ini basically succeeded,

After successful follow the steps to configure the MySQL port, the user name password can be

Jenkins's words are even simpler.

http://www.jenkins-ci.org/

There is a link below, click in, download a. War package

Latest and Greatest (1.622)

And then just a word

Java-jar Jenkins.war, the default port is 8080,

It's a little tricky to change ports.

To

/root/.jenkins/war/meta-inf/maven/org.jenkins-ci.main/jenkins-war/pom.xml, change it.

I haven't tried it anyway.


PS:, may be missing a variety of packages, to the Apache website up and down on the line

Then it's the docking.

Docking words need a git plugin, in the "System Management", "optional plug-in will have"

Then click the link to download, because it is a foreign site, so the direct download is not, download is a *.HPI file

In the high-level, upload a little, but also to note the proxy settings, the server and port settings are empty, or later may cause a lot of trouble

Then there is


Source control Choose Git, then copy the Git path, add the necessary username, password,

The Execute Shell then adds some compiled syntax Make,make install, which is basically a shell command

Then click Save, Build Now,

This is the basic success of the ~

Of course, it can be triggered by the way trigger, here is not to say.

In doubt, the small partner also welcome e-Mail cc414052249@163.com to ask me ~

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.