Giter VIP home page Giter VIP logo

ansinpack's People

Contributors

shohey1226 avatar

Watchers

 avatar  avatar  avatar

ansinpack's Issues

serverspec login issue from the job..

Jenkins public ssh key is not added to VM.. There are a couple of options to deal with this.

  • Add jenkins ID to sudo user
  • Create id_rsa.pub for jenkins and upload this to Digital ocean
  • others?

Perl system function doesn't return -1 on packer command

It should exist when validation or build is failed but it's continuing now.. I need to dig into this.

Started by GitHub push by shohey1226
Building in workspace /var/lib/jenkins/jobs/Ansinpack/workspace
Fetching changes from the remote Git repository
Fetching upstream changes from https://github.com/shohey1226/Ansinpack.git
Seen branch in repository origin/jenkins_test1
Seen branch in repository origin/master
Seen branch in repository origin/webapp-0.0.1
Seen 3 remote branches
Checking out Revision f2c11fec307edb4018c1fe28c7cbb7a531921aa8 (origin/webapp-0.0.1)
First time build. Skipping changelog.
[workspace] $ /bin/sh -xe /tmp/hudson101477131185422951.sh
+ /usr/bin/perl scripts/jenkins_job.pl
webapp : 0.0.1
Execute: /usr/local/bin/packer validate -var 'snapshot_name=webapp-0.0.1' packer/do-webapp.json
Template validation failed. Errors are shown below.

Errors validating build 'digitalocean'. 2 error(s) occurred:

* a client_id must be specified
* an api_key must be specified
Execute: /usr/local/bin/packer build -var 'snapshot_name=webapp-0.0.1' packer/do-webapp.json
�[1;32mdigitalocean output will be in this color.�[0m

2 error(s) occurred:

* a client_id must be specified
* an api_key must be specified

Docker for branch test

  • Only executed when it's branch change
  • Branch name: origin/--..
  • Applicable type: base, webapp, database, memcache,,,,
  • correspond type under ansible/ directory: base.yml, webapp,yml,,,,
  • base is the base of the others. e.g. database = base + mysql
  • If the type is base,
    • create image by packer
    • name is -<first 7 digits of GIT commit#>. e.g. base1394685509-a508e83
    • run test by serverspec
    • if ok, docker push to private repo (private repo needs to be up)
    • if not ok, delete tag, image and intance
  • if the type is NOT base
    • pull the latest base from repo and run with sshd
    • run ansible=playbook to the instance
    • run serverspec to test
    • if ok, push to private repo
      not ok, delete image and kill the instance

else if it's master change,

create image depending of the change of branch. --- ? we need to know what's the change? possible?

Perl module is not found in Jenkins job

This is because DigitalOcean module is not installed on the user who execute the jenkins job as. Need to setup Jenkins user properly.

Can't locate DigitalOcean.pm in @INC (@INC contains: /usr/local/lib64/perl5 /usr/local/share/perl5 /usr/lib64/perl5/vendor_perl /usr/share/perl5/vendor_perl /usr/lib64/perl5 /usr/share/perl5 .) at scripts/doman.pl line 8.
BEGIN failed--compilation aborted at scripts/doman.pl line 8.

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.