Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Jenkins pipeline #3

Closed
wants to merge 32 commits into from
Closed
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
32 commits
Select commit Hold shift + click to select a range
b1010ea
add initial .travis.yml for CI integration
blackboxsw Apr 26, 2017
816fc46
initial github project readme
blackboxsw Apr 26, 2017
a3d4ca1
use real rst :)
blackboxsw Apr 26, 2017
35df506
Merge pull request #1 from blackboxsw/github-readme-and-travis-integr…
blackboxsw Apr 26, 2017
a71a041
add flake8 test
blackboxsw Apr 26, 2017
d7be537
add pycodestyle and pyflakes
blackboxsw Apr 26, 2017
f19665a
Merge pull request #2 from blackboxsw/travis-lint
blackboxsw Apr 27, 2017
195dbf7
simple jenkinsfile for testing
blackboxsw Apr 27, 2017
a26a45e
add checkout stage
blackboxsw Apr 28, 2017
40208c8
Add broken make deb call
blackboxsw Apr 28, 2017
9b3581e
Add Install deps stage
blackboxsw Apr 28, 2017
6de44f3
make it sudo
blackboxsw Apr 28, 2017
6ec9b89
add missing pkg biuld dependencies
blackboxsw Apr 28, 2017
647ba32
add tox dependencies for yaml c-bindings
blackboxsw May 4, 2017
ee8689f
need sudo to install packages
blackboxsw May 4, 2017
191e4d8
echo toxenv from before_install
blackboxsw May 4, 2017
2ad9267
before_install py27 and py3 deps
blackboxsw May 4, 2017
ac37df9
only install deps if defined (py27/py3
blackboxsw May 4, 2017
495d72e
try again on py2/3 deps
blackboxsw May 4, 2017
ff3edef
try travis matrix definition
blackboxsw May 4, 2017
ed5ad62
test travis matrix definitions
blackboxsw May 4, 2017
e1446f4
test again
blackboxsw May 4, 2017
ff693d5
test again
blackboxsw May 4, 2017
4492a99
test again
blackboxsw May 4, 2017
09e5339
test again
blackboxsw May 4, 2017
5f06cfa
add back flake8 tip-pycodestyle and tip-pyflakes
blackboxsw May 4, 2017
7e91826
stop all the email notifications
blackboxsw May 4, 2017
4497c9f
add flake and tox py27 testing
blackboxsw May 26, 2017
2e9445e
update commit status. consolidate stages
blackboxsw May 26, 2017
c4bd7d6
set reposSource
blackboxsw May 26, 2017
c672f6a
comment reposSource
blackboxsw May 26, 2017
a822695
add commit message status for checkout stage
blackboxsw May 26, 2017
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Jump to
Jump to file
Failed to load files.
Diff view
Diff view
26 changes: 26 additions & 0 deletions .travis.yml
@@ -0,0 +1,26 @@
sudo: false
notifications:
email: false
language: python
git:
depth: 200
matrix:
include:
- env: TOXENV=py27
addons:
apt:
packages:
- python-dev
- libyaml-dev
- env: TOXENV=py3
addons:
apt:
packages:
- python3-dev
- libyaml-dev
- env: TOXENV=flake8
- env: TOXENV=tip-pycodestyle
- env: TOXENV=tip-pyflakes
install: pip install tox
script:
- tox -e $TOXENV
35 changes: 35 additions & 0 deletions Jenkinsfile
@@ -0,0 +1,35 @@
#!groovy

// Update git status.
def setBuildStatus(context, message, state) {
step([
$class: "GitHubCommitStatusSetter",
// reposSource: [$class: "ManuallyEnteredRepositorySource", url: "https://github.com/blackboxsw/cloud-init"],
contextSource: [$class: "ManuallyEnteredCommitContextSource", context: context],
errorHandlers: [[$class: "ChangingBuildStatusErrorHandler", result: "UNSTABLE"]],
statusResultSource: [$class: "ConditionalStatusResultSource", results: [[
$class: "AnyBuildResult", message: message, state: state]] ]
]);
}

node {
stage ('Checkout') {
context = "jenkins/checkout"
setBuildStatus(context, "pending", "PENDING")
checkout scm
setBuildStatus(context, "pending", "SUCCESS")
}
stage ('Build') {
sh 'sudo apt-get update -y'
sh 'sudo apt-get install devscripts debhelper dh-systemd pep8 pyflakes python3-pyflakes pyflakes python3-httpretty python3-mock python3-nose python3-coverage python3-pep8 python3-flake8 python3-hacking -y'
context = "jenkins/builddeb"
setBuildStatus(context, "pending", "PENDING")
echo "Building branch: ${env.BRANCH_NAME}"
sh 'make deb'
setBuildStatus(context, "Build complete", "SUCCESS")
}
stage ('Deploying') {
echo 'Deploying...'
}
}

49 changes: 49 additions & 0 deletions README.rst
@@ -0,0 +1,49 @@
==================================
Cloud-init unofficial project fork
==================================

.. image:: https://readthedocs.org/projects/cloudinit/badge/?version=latest
:target: http://cloudinit.readthedocs.io/en/latest/?badge=latest
:alt: Documentation Status

.. image:: https://travis-ci.org/blackboxsw/cloud-init.svg?branch=master
:target: https://travis-ci.org/blackboxsw/cloud-init

Cloud-init is a set of python scripts and utilities to make your cloud images be all they can be!

Summary
-------
Cloud-init is the defacto multi-distribution package that handles early initialization of a cloud instance.

Capabilities
------------
Cloud-init ‘s behavior can be configured via user-data which is given to the instance at launch time.

Availabilty
-----------
It is currently installed in the Ubuntu Cloud Images and also in the official Ubuntu images available on EC2, Azure, GCE and many other clouds.

Versions for other systems can be (or have been) created for the following distributions:

.. Ubuntu
.. Fedora
.. Debian
.. RHEL
.. CentOS
.. and more...

So ask your distribution provider where you can obtain an image with it built-in if one is not already available :smile:

Project details
---------------
* `Bugs`_ - issue tracking
* `Source`_
* `Testing`_ - Testing code
* `Blueprints`_ - Feature specs
* IRC: #cloud-init on Freenode (irc.freenode.net)

.. _Bugs: https://bugs.launchpad.net/cloud-init
.. _Source: https://github.com/cloud-init/cloud-init
.. _Blueprints: https://blueprints.launchpad.net/cloud-init
.. _Testing: https://cloudinit.readthedocs.io/en/latest/topics/tests.html