{"id":382,"date":"2017-07-07T14:38:04","date_gmt":"2017-07-07T05:38:04","guid":{"rendered":"https:\/\/p-corporate-blog-cms.mmmcorp.co.jp\/blog\/2017\/07\/07\/pass_parameter_from_jenkins_job_to_ansible"},"modified":"2017-07-07T14:38:04","modified_gmt":"2017-07-07T05:38:04","slug":"pass_parameter_from_jenkins_job_to_ansible","status":"publish","type":"post","link":"https:\/\/p-corporate-blog-cms.mmmcorp.co.jp\/blog\/2017\/07\/07\/pass_parameter_from_jenkins_job_to_ansible\/","title":{"rendered":"Jenkins\u304b\u3089Ansible\u306b\u30d1\u30e9\u30e1\u30fc\u30bf\u3092\u6e21\u3057\u3066\u30b8\u30e7\u30d6\u3092\u5b9f\u884c\u3059\u308b"},"content":{"rendered":"
\u524d\u7530\u3067\u3059\u3002
\n\u6700\u8fd1\u306f\u7d99\u7d9a\u7684\u30a4\u30f3\u30c6\u30b0\u30ec\u30fc\u30b7\u30e7\u30f3\u30c4\u30fc\u30eb\u306bJenkins\u3092\u4f7f\u3063\u3066\u3044\u307e\u3059\u3002
\n\u4eca\u307e\u3067\u305a\u3063\u3068CircleCI\u3092\u4f7f\u3063\u3066\u304d\u305f\u306e\u3067\u3001UI\u306a\u3069\u306b\u307e\u3060\u5168\u7136\u6163\u308c\u3066\u3044\u306a\u3044\u3067\u3059\u304c\u3001\u5c11\u3057\u305a\u3064\u899a\u3048\u3066\u3044\u3063\u3066\u3044\u307e\u3059\u3002<\/p>\n
\u73fe\u5728\u6271\u3063\u3066\u3044\u308b\u30b7\u30b9\u30c6\u30e0\u306f\u4e0b\u8a18\u306e\u3088\u3046\u306a\u611f\u3058\u3067\u3001Jenkins\u304b\u3089Ansible\u3092\u4f7f\u3063\u3066\u30b5\u30fc\u30d0\u306e\u74b0\u5883\u69cb\u7bc9\u3084\u30c7\u30d7\u30ed\u30a4\u3092\u3057\u3066\u3044\u307e\u3059\u3002<\/p>\n
<\/p>\n
\u30a2\u30d7\u30ea\u30b1\u30fc\u30b7\u30e7\u30f3\u3084Ansible\u306a\u3069\u306e\u69cb\u6210\u7ba1\u7406\u306e\u30bd\u30fc\u30b9\u30b3\u30fc\u30c9\u306fGitHub\u306a\u3069\u3067\u7ba1\u7406\u3057\u3066\u3044\u308b\u3053\u3068\u304c\u591a\u3044\u3068\u601d\u3044\u307e\u3059\u304c\u3001DB\u306e\u63a5\u7d9a\u60c5\u5831\u306a\u3069\u306e\u74b0\u5883\u306b\u3088\u3063\u3066\u5024\u304c\u5909\u308f\u3063\u305f\u308a\u3001\u30bb\u30ad\u30e5\u30a2\u306b\u3057\u306a\u3051\u308c\u3070\u3044\u3051\u306a\u3044\u30d1\u30e9\u30e1\u30fc\u30bf\u306a\u3069\u306f\u3001\u76f4\u63a5\u30bd\u30fc\u30b9\u30b3\u30fc\u30c9\u306b\u8a18\u8f09\u3059\u308b\u306e\u3067\u306f\u306a\u304f\u3001Jenkins\u3084CircleCI\u306a\u3069\u306e\u30a4\u30f3\u30c6\u30b0\u30ec\u30fc\u30b7\u30e7\u30f3\u30b5\u30fc\u30d3\u30b9\u306b\u30d1\u30e9\u30e1\u30fc\u30bf\u3092\u8a2d\u5b9a\u3057\u3001\u30c7\u30d7\u30ed\u30a4\u6642\u306b\u52d5\u7684\u306b\u30bb\u30c3\u30c8\u3057\u3066\u3042\u3052\u308b\u306e\u304c\u30bb\u30aa\u30ea\u30fc\u3060\u3068\u601d\u3044\u307e\u3059\u3002
\nJenkins\u304b\u3089Ansible(Jenkins Ansible plugin\u4f7f\u7528)\u3067\u30b5\u30fc\u30d0\u306e\u74b0\u5883\u69cb\u7bc9\u3092\u3059\u308b\u969b\u306b\u3001\u30b5\u30fc\u30d0\u3084\u30a2\u30d7\u30ea\u30b1\u30fc\u30b7\u30e7\u30f3\u56fa\u6709\u306e\u60c5\u5831(DB\u306e\u63a5\u7d9a\u60c5\u5831\u306a\u3069)\u3092\u69cb\u7bc9\u5bfe\u8c61\u306e\u30b5\u30fc\u30d0\u306b\u6e21\u3057\u3066\u3042\u3052\u308b\u70ba\u3001\u3069\u3046\u3084\u3063\u3066\u6e21\u3059\u304b\u306e\u65b9\u6cd5\u3092\u8272\u3005\u8abf\u67fb\u3057\u307e\u3057\u305f\u306e\u3067\u3001\u305d\u306e\u65b9\u6cd5\u3092\u66f8\u304d\u305f\u3044\u3068\u601d\u3044\u307e\u3059\u3002<\/p>\n
\u74b0\u5883<\/th>\n | \u30d0\u30fc\u30b8\u30e7\u30f3<\/th>\n<\/tr>\n<\/thead>\n |
---|---|
Jenkins version<\/td>\n | 1.645<\/td>\n<\/tr>\n |
Jenkins Ansible Plugin<\/a><\/td>\n | 0.6.2<\/td>\n<\/tr>\n<\/tbody>\n<\/table>\nJenkins\u306e\u30d1\u30e9\u30e1\u30fc\u30bf\u8a2d\u5b9a<\/h2>\nJenkins\u306e\u30d1\u30e9\u30e1\u30fc\u30bf\u306f\u3001\u5168\u30b8\u30e7\u30d6\u5168\u4f53\u306e\u30b0\u30ed\u30fc\u30d0\u30eb\u30d1\u30e9\u30e1\u30fc\u30bf\u3068\u3001\u30b8\u30e7\u30d6\u6bce\u306e\u30d1\u30e9\u30e1\u30fc\u30bf\u304c\u3042\u308a\u307e\u3059\u3002 \u300c\u8ffd\u52a0\u300d\u30dc\u30bf\u30f3\u3092\u30af\u30ea\u30c3\u30af\u3057\u3066\u3001\u8a2d\u5b9a\u3057\u305f\u3044\u30d1\u30e9\u30e1\u30fc\u30bf\u3092\u8a2d\u5b9a\u3057\u3066\u3044\u304d\u307e\u3059\u3002<\/p>\n <\/p>\n \u300c\u30d1\u30e9\u30e1\u30fc\u30bf\u306e\u8ffd\u52a0\u300d -> \u300c\u6587\u5b57\u5217\u300d\u3092\u9078\u629e\u3057\u3001\u300c\u540d\u524d\u300d\u306b\u30ad\u30fc\u3001\u300c\u30c7\u30d5\u30a9\u30eb\u30c8\u5024\u300d\u306b\u6e21\u3057\u305f\u3044\u30d1\u30e9\u30e1\u30fc\u30bf\u3092\u8a2d\u5b9a\u3057\u3066\u3044\u304d\u307e\u3059\u3002<\/p>\n <\/p>\n \u6b21\u306bAnsible\u5b9f\u884c\u6642\u306b\u30d1\u30e9\u30e1\u30fc\u30bf\u3092\u30bb\u30c3\u30c8\u3059\u308b\u65b9\u6cd5\u3067\u3059\u3002<\/p>\n <\/p>\n \u3053\u306e\u8a2d\u5b9a\u306f\u3001Jenkins\u306e\u30b0\u30ed\u30fc\u30d0\u30eb\u30d1\u30e9\u30e1\u30fc\u30bf\u3084\u30b8\u30e7\u30d6\u6bce\u306e\u30d1\u30e9\u30e1\u30fc\u30bf\u306b\u8a2d\u5b9a\u3057\u305f \u4ee5\u4e0a\u3001\u7c21\u5358\u3067\u3059\u304c\u300cJenkins\u304b\u3089Ansible\u306b\u30d1\u30e9\u30e1\u30fc\u30bf\u3092\u6e21\u3057\u3066\u74b0\u5883\u69cb\u7bc9\u3059\u308b\u65b9\u6cd5\u300d\u3067\u3057\u305f\u3002 |