Commit Graph

58 Commits

Author SHA1 Message Date
Alexander Bochkarev df3da52454 [Jenkins] Jenkins version pinned to 2.19.1 LTS
Change-Id: I651e2fdac68c7a0fea9ab5b0c518b4d75834cf71
2016-10-20 15:01:16 +03:00
Sergey Kraynev 1b3381c0f8 Revert "[Jenkins] Jenkins version pinned to 2.19.1 LTS"
This reverts commit 5dcc74ac1c.

Change-Id: Id4c0d8371678825f244b05978b8a29a3ec3892e3
2016-10-19 12:20:03 +00:00
Alexey Khivin 5dcc74ac1c [Jenkins] Jenkins version pinned to 2.19.1 LTS
Change-Id: Icfd06813aeacf9994d6b512979454f16444e9b67
2016-10-10 15:44:17 +03:00
Jenkins f779816628 Merge "Fix errors reported by shellcheck for Gerrit and Jenkins" 2016-08-08 20:08:33 +00:00
Sergey Kraynev 805c2cef0e Fix errors reported by shellcheck for Gerrit and Jenkins
Change-Id: Ia383b6e788429fc3170d0362afded8f3bc43e61f
2016-08-08 16:37:54 +00:00
Jenkins 5f0dea1b16 Merge "Fix indentation warnings CI/CD" 2016-08-08 10:35:38 +00:00
Sergey Kraynev 5e046b2169 Fix indentation warnings CI/CD
After patch Ia2498bdb0f7c310ec3d2c2f11f5d3fc08c8b352c there is possible to
run check for yaml and shell syntax.
This patch is oriented to fix some similar Warnings reported in yaml
syntax check for CI/CD apps, like "(indentation)".

Change-Id: Ie2d854e6feef6362ea07d6132e71072dae49b5d7
2016-08-03 17:14:47 +03:00
Sergey Kraynev e810870ecf Release version 0.0.10 for all CI/CD apps
New versions contain:
 - several minor fixes
 - Fix bug with JJB, when it ignores config file
 - Other improvements

Change-Id: I8d6d0cb676245530d481af92782118a9e2847c0b
2016-08-03 12:02:22 +00:00
Sergey Kraynev 0bb1758d61 Fix Jenkins Job Builder installation
Currently Jenkins App install JJB from master and it cause to
Authorization error, because JJB from master does not read config file.
This patch binds version of JJB to 1.6.1 (last released)

There is related bug in:
JJB https://storyboard.openstack.org/#!/story/2000686

Change-Id: Ib68ac864ab4d581cf59b6f909198b9699605f45f
2016-07-29 07:13:24 +00:00
Sergey Kraynev 3d62edef39 Move system-config url to properties
Make system-config url available for configuring by setting
it out of the class. Also add property for choosing which branch should
be used stable or master. By default it will be "master" branch with url
pointing on fuel-infra repository.

Also add UI form for SystemConfig package, which will be used later by
UI forms of Applications.

Change-Id: I52779d9b190ddee1de2243de812e3f7133584b6d
2016-07-20 18:47:15 +03:00
Jenkins c8e54d86e4 Merge "Remove unused empty args from template" 2016-07-14 17:13:36 +00:00
Sergey Kraynev f3da3d9afe Remove unused empty args from template
Change-Id: I35b03d821417f732663f1226257f91d75f4fc8d6
2016-07-13 11:55:09 +00:00
Anastasia Kuznetsova e58b57b8e2 [Jenkins] Add usage of applyManifest method to Jenkins.yaml
Small refactoring: added usage of applyManifest method instead of
coping puppet to some folder on the instance and executing it from
this directory.

Change-Id: I910dd11f68fedce11eb322cb39a47844a895387c
2016-07-07 21:39:46 +00:00
Jenkins e6a356892a Merge "[Jenkins] Fixing work v2 with LDAP plugin" 2016-07-07 18:31:00 +00:00
Nikolay Mahotkin f7ce50c309 [Jenkins] Fixing work v2 with LDAP plugin
* Install LDAP plugin
 * Update config.xml
 * More accurate search in get_api_token.sh

Change-Id: I27f4e99a69e492d303e1f5a6653abcdb473ef7ee
2016-07-07 16:25:29 +03:00
Alexey Khivin 983538a912 [Jenkins] Switch package version to 1.2
1.2 package version is supported since Liberty

Change-Id: I084e36506fbdde0915c56049246b22d400ec472e
2016-07-04 15:35:34 +03:00
Alexey Khivin 4cc23637de [Jenkins] Calls of setHieraValue replaced to putHieraData
Several seconds saved and looks better.

Change-Id: I8ae5fe2c73a106bc28567d86e51db9e4bf1147ed
2016-06-29 17:21:29 +03:00
Nikolay Mahotkin 80a9e1e271 [Jenkins] Fixing bug in script for installing plugins
* The bug was due to small iterations number
   so the script didn't have enough iterations
   to complete search for dependencies

Change-Id: I715be933c2d9328086b70cdb55cddf55b9622a21
2016-06-27 18:20:05 +03:00
Nikolay Mahotkin 35d3cf36fd [Jenkins] Fixing upgrading of git plugin
* Added a generic script for installing
   plugin with their dependencies

Change-Id: I66239967f1bac1cfde1a3add81de2b70657e9f5d
2016-06-27 14:46:35 +03:00
Jenkins 034028ab3e Merge "[Gerrit] Adding a new label - 'Workflow'" 2016-06-24 13:21:22 +00:00
Jenkins f400abcc16 Merge "Fixing Nodepool app" 2016-06-24 13:21:13 +00:00
Nikolay Mahotkin 5f22823d2a [Gerrit] Adding a new label - 'Workflow'
* label 'Workflow' is required by Zuul for launching gate pipeline
 * Zuul should be able to vote Verified +2 as a response to successful
   gate pipeline (extending Verified label by -2..+2)
 * The change requires merging https://review.fuel-infra.org/#/c/22331/

Change-Id: Ie0ec110f09edf0069b6754f123e66f9532cfd937
2016-06-22 13:06:06 +03:00
Nikolay Mahotkin 6d351b9067 Fixing Nodepool app
* Adding credentials configuration to Jenkins app
 * Fixed nodepool configuration
 * Added retrieving API token from Jenkins
 * Providing parameters for configuration of OpenStack cloud
 * Fixed providing public and private keys to nodepool nodes

Change-Id: I5c8be834f33870b9733df0041e96ffe94a9618b4
2016-06-22 11:38:47 +03:00
asilenkov 52a4cc6b70 Tag Version: 0.0.9 added for CICD bundle
Change-Id: Ib8ce82413d659a1dae64edfb2960f48ab830390f
2016-06-16 18:44:49 +03:00
Sergey Kraynev 27220928e3 Remove unused namespaces
Change-Id: Ica3174730276c6918aceef85aac1f968bf77ed04
2016-06-15 14:53:51 +00:00
Anastasia Kuznetsova 7c1054ec53 Fix automated job creation
- Splited installation of Jenkins anf JJB
- Changed JJB config
- Added switching to local Gerrit config

Change-Id: Iec04050b1ac3674329c9f0da60d852775d75fbbd
2016-06-07 13:45:51 +00:00
Sergey Kraynev 38a6440f08 Capitalize Gerrit and Jenkins names in reports
This patch fixes places of using names of services in reports to make it
unify with other reports, where we use capitalized versions of names.

Change-Id: I0db49c6b33f1e71808ad677588335be862b33abf
2016-06-06 13:02:10 +00:00
asilenkov 0c1c1dfbb7 CloudBees Docker Build and Publish plugin added
* docker-build-publish plugin allows to build Docker
    images from artifacts and publish to Registry.
    Registry could be private or public.

Change-Id: I5161b32149649d6963694e99b88f9e18a07d068d
2016-05-31 19:04:09 +03:00
Jenkins e0d0a1189d Merge "Remove annoying suffix from package names" 2016-05-27 11:12:58 +00:00
Sergey Kraynev 9f84a6514c Remove annoying suffix from package names
Remove suffix "Puppet" from package name, which is displayed during separate
installation Gerrit or Jenkins applications.

Change-Id: Icc711cd08d09c155b72e64ad2c436c5e5ef203bf
2016-05-26 20:24:56 +03:00
Nikolay Mahotkin 0f1560f83d [Jenkins] Adding upgrade of git plugin
* Note: Using puppet jenkins::plugin is
   useless here because it doesn't upgrade
   any plugin. It is needed only to install
   new plugins. So the solution here is to
   download the plugin with its dependencies
   and put them into plugins directory.

Change-Id: Ib0e25758d4033ca08c501c471d0af189b8585223
2016-05-26 17:12:33 +03:00
Nikolay Mahotkin f8d279f6b9 Adding label 'Verified' in Gerrit
* Adds label 'Verified' for Jenkins voting.

Change-Id: I7a14b22b5e0290b8040f90c72342cbdbaafb0627
2016-05-26 17:12:33 +03:00
Sergey Kraynev 98e7e0d260 Rename prefix for FQN of packages
It was discussed with Murano team and it's correct way to show, that
this application will be publically developed and available for
open-source contribution.
Also change namespace 'opaas' to 'ci_cd_pipeline_murano_app'.

Change-Id: I234aa2aa8c6a3680f9baa38669d60d90998042b7
2016-05-25 09:31:48 +03:00
Nikolay Mahotkin 31015e9a21 [Jenkins] Configuration of Gerrit-trigger plugin
Change-Id: I9aa4729a2ec61bd2b358ab41ab0994ce57b93fb3
2016-05-17 17:54:09 +00:00
Anastasia Kuznetsova 7d3f4615bc [Jenkins] Provide valid credentials for JJB in case of LDAP enabled
Change-Id: I5151cf5f92fc82223448b8d783f086419f855f3a
2016-05-16 13:15:09 +03:00
Nikolay Mahotkin 469cc0378a Adding a check for git user and email
Change-Id: Ifd440f84ea865bbd5bfae0af244f50d8a4382e3e
2016-05-16 08:26:57 +00:00
Nikolay Mahotkin fe97ac5aad Fixing keys issue in Jenkins
* Added key generation to Jenkins
 * If Gerrit is provided, create jenkins user
   and pass jenkins public key to Gerrit
 * Fixed CI/CD app for these changes
 * Fixed copy private jenkins key to /home/jenkins/.ssh

Change-Id: I26a7722e15aaf04274fae9ed437f45af5b213b95
2016-05-13 20:02:48 +03:00
Sergey Kraynev 3b587e33ad Add http prefix for creating hyperlinks in deployment log
Currently we have ip addresses for Gerrit, Jenkins and Zuul, which
provide UI. However it's just ip addresses in text form and user need to
copy-paste them in browser url. Current patch adds "http" prefix for
these ip addresses for creating hyperlinks from deployment log.

Change-Id: I613a574f44ec327c4a2b1f4e06a2db8a17e6a097
2016-05-13 19:01:42 +03:00
Sergey Kraynev 0149a656ca [Jenkins] Set User, Mail for Jenkins in meta App
Previously we had default values in Jenkins Application directly, but
these defaults are used only for demo and testing. Current patch remove
these default values and move them to meta CICD Application.

Currently it's the same emal and user as used for authorization in
Jenkins and Gerrit. In the future it may be separate user/mail for
independent work Jenkins with Gerrit.

Change-Id: Id13c407225f4fbe766567207a40fb606bb04a085
2016-05-13 19:01:33 +03:00
Alexey Khivin eba9931ba5 Install project-config by puppet instead of git clone
Change-Id: Ib0b564bf5b8e848ed2f7a303675cfe6df16d3297
2016-05-13 18:35:58 +03:00
Anastasia Kuznetsova 9105564b3f Improve logging: remove None from logs
Change-Id: Ib867a59fbcdd1259eb670ec17bfe0831e6012067
2016-05-13 17:16:07 +03:00
Nikolay Mahotkin f395b86442 [JENKINS] Adding installation of gerrit-trigger plugin
Change-Id: I173ace07373b2a57f7bc3f422e4e19f5c00b178b
2016-05-13 16:52:24 +03:00
Artem Silenkov fe0a0c135a [JENKINS] Add defaults for Maven
Maven configured by default

Change-Id: I01372ebf1a8c2b2690104b4f9170165b5341973b
2016-05-13 15:59:46 +03:00
Artem Silenkov fae7118e2b [JENKINS] Add defaults for GIT config
user.name, user.email filled by default

Change-Id: I6abaa5634ab0c6fecbe7785b3267009a2411694b
2016-05-13 15:59:30 +03:00
Alexey Khivin c0113c32f7 [CI/CD][Jenkins] Jenkins user added
Change-Id: Id3c2e5c1bf03734e649fc04a7845611ad3ddf073
2016-05-12 22:26:57 +03:00
Anastasia Kuznetsova 4784eec789 Remove accidentally added cyrillic symbols
Change-Id: Id23d4281f2bf4bb7c4f0273788e1e1f07a054c9b
2016-05-12 18:36:07 +03:00
Alexey Khivin 9b969745c0 ProjectConfig renamed to SystemConfig
The first step to install project-config in the
right way using Puppet.

SystemConfig module function is to install all of
the openstack-infra's puppet modules

Change-Id: I504f3e10e68d7962dc26f8e072f3ed698cac9399
2016-05-12 14:58:29 +00:00
Nikolay Mahotkin 46924588e2 Fixing Jenkins configuration
* Remove unneeded backslashes, otherwise the paths are wrong

Change-Id: I9af1db4bdf92588f09b1cf2447efb21c605aeab1
2016-04-21 15:23:00 +03:00
Nikolay Mahotkin d04af5eb8c Merge "Adding gearman plugin configuration to Jenkins" 2016-04-21 14:34:53 +04:00
Nikolay Mahotkin 52e83e3eb8 Adding gearman plugin configuration to Jenkins
* Gearman plugin should be configured externally
 * It is needed for Nodepool integration

Change-Id: Idcc7d8a84a6c9c23c9d741475415ad6a032bd3df
2016-04-19 17:20:34 +03:00