Anda di halaman 1dari 14

Zero to Jenkins - PHP Continuous Integration — ProgrammingAreHard — To Get You Started http://programmingarehard.com/2013/09/26/zero-to-jenkins.

html/

Get notified of new posts

Subscribe

1 of 14 19/09/17, 23:11
Zero to Jenkins - PHP Continuous Integration — ProgrammingAreHard — To Get You Started http://programmingarehard.com/2013/09/26/zero-to-jenkins.html/

ProgrammingAreHard (/ ) Posts Archive(/blog) Categories (/blog/categories) Tags (/blog/tags) About (/about)

sudo apt-get update

apt-get install jenkins

2 of 14 19/09/17, 23:11
Zero to Jenkins - PHP Continuous Integration — ProgrammingAreHard — To Get You Started http://programmingarehard.com/2013/09/26/zero-to-jenkins.html/

ProgrammingAreHard About (/about)

cd /var/libs/jenkins/jobs chown -R jenkins:jenkins php-template

3 of 14 19/09/17, 23:11
Zero to Jenkins - PHP Continuous Integration — ProgrammingAreHard — To Get You Started http://programmingarehard.com/2013/09/26/zero-to-jenkins.html/

ProgrammingAreHard (/ ) Posts Archive(/blog) Categories (/blog/categories) Tags (/blog/tags) About (/about)

4 of 14 19/09/17, 23:11
Zero to Jenkins - PHP Continuous Integration — ProgrammingAreHard — To Get You Started http://programmingarehard.com/2013/09/26/zero-to-jenkins.html/

ProgrammingAreHard (/ ) Posts Archive(/blog) Categories (/blog/categories) Tags (/blog/tags) About (/about)

/etc/init.d/jenkins stop
sudo vim /var/lib/jenkins/config.xml
<useSecurity>true</useSecurity> <useSecurity>false</useSecurity>
/etc/init.d/jenkins start

5 of 14 19/09/17, 23:11
Zero to Jenkins - PHP Continuous Integration — ProgrammingAreHard — To Get You Started http://programmingarehard.com/2013/09/26/zero-to-jenkins.html/

ProgrammingAreHard (/ ) Posts Archive(/blog) Categories (/blog/categories) Tags (/blog/tags) About (/about)

sudo su jenkins
cd /var/lib/jenkins/.ssh

ssh-keygen -t rsa -C "your.email@website.com"

cat id_rsa.pub

ssh -T git@bitbucket.org yes

6 of 14 19/09/17, 23:11
Zero to Jenkins - PHP Continuous Integration — ProgrammingAreHard — To Get You Started http://programmingarehard.com/2013/09/26/zero-to-jenkins.html/

ProgrammingAreHard (/ ) Posts Archive(/blog) Categories (/blog/categories) Tags (/blog/tags) About (/about)

cd /var/libs/jenkins/jobs chown -R jenkins:jenkins your-project-name

7 of 14 19/09/17, 23:11
Zero to Jenkins - PHP Continuous Integration — ProgrammingAreHard — To Get You Started http://programmingarehard.com/2013/09/26/zero-to-jenkins.html/

ProgrammingAreHard (/ ) Posts Archive(/blog) Categories (/blog/categories) Tags (/blog/tags) About (/about)

composer update

vendor/bin/phing -logger phing.listener.NoBannerLogger

build/api/html

8 of 14 19/09/17, 23:11
Zero to Jenkins - PHP Continuous Integration — ProgrammingAreHard — To Get You Started http://programmingarehard.com/2013/09/26/zero-to-jenkins.html/

ProgrammingAreHard (/ ) Posts Archive(/blog) Categories (/blog/categories) Tags (/blog/tags) About (/about)

git config --global user.email "your.email@website.com" git config --global user.name "jenkins"

cd /var/lib/jenkins/jobs/your-project-name composer update

9 of 14 19/09/17, 23:11
Zero to Jenkins - PHP Continuous Integration — ProgrammingAreHard — To Get You Started http://programmingarehard.com/2013/09/26/zero-to-jenkins.html/

ProgrammingAreHard (/ ) Posts Archive(/blog) Categories (/blog/categories) Tags (/blog/tags) About (/about)

10 of 14 19/09/17, 23:11
Zero to Jenkins - PHP Continuous Integration — ProgrammingAreHard — To Get You Started http://programmingarehard.com/2013/09/26/zero-to-jenkins.html/

ProgrammingAreHard (/ ) Posts Archive(/blog) Categories (/blog/categories) Tags (/blog/tags) About (/about)

11 of 14 19/09/17, 23:11
Zero to Jenkins - PHP Continuous Integration — ProgrammingAreHard — To Get You Started http://programmingarehard.com/2013/09/26/zero-to-jenkins.html/

ProgrammingAreHard (/ ) Posts Archive(/blog) Categories (/blog/categories) Tags (/blog/tags) About (/about)

12 of 14 19/09/17, 23:11
Zero to Jenkins - PHP Continuous Integration — ProgrammingAreHard — To Get You Started http://programmingarehard.com/2013/09/26/zero-to-jenkins.html/

6 Comments ProgrammingAreHard 1 Login About (/about)


ProgrammingAreHard (/ ) Posts Archive(/blog) Categories (/blog/categories) Tags (/blog/tags)

Recommend 1 Share Sort by Best

Join the discussion…

LOG IN WITH
OR SIGN UP WITH DISQUS ?

SenG • a year ago


I was mesmerised by the beauty of the presentation. Sometimes, I lost track of content by
looking how beautiful the content is. Do you use any specific tool for presentation?

btw, article is also awesome. It had few typos, but that doesn't stop it from conveying what is
supposed to. Thank you!
• Reply • Share ›

Alex Domoradov • a year ago


Dude, you really should use TAB in the console ;)
• Reply • Share ›

Mahder • 3 years ago


I was looking for an Ant build with Jenkins.... where can i get a good decent step by step
example for that....?
• Reply • Share ›

Mat Gargano • 3 years ago


curl https://raw.github.com/seba... | java -jar jenkins-cli.jar -s http://localhost:8080 create-job
php-template

should be

curl -L https://raw.githubuserconte... | \
java -jar jenkins-cli.jar -s http://localhost:8080 create-job php-template
13 of 14 19/09/17, 23:11
Zero to Jenkins - PHP Continuous Integration — ProgrammingAreHard — To Get You Started http://programmingarehard.com/2013/09/26/zero-to-jenkins.html/

ProgrammingAreHard (/ ) Posts Archive(/blog) Categories (/blog/categories) Tags (/blog/tags) About (/about)

14 of 14 19/09/17, 23:11

Anda mungkin juga menyukai