{"id":366621,"date":"2024-05-21T03:03:56","date_gmt":"2024-05-21T03:03:56","guid":{"rendered":"http:\/\/savepearlharbor.com\/?p=366621"},"modified":"-0001-11-30T00:00:00","modified_gmt":"2024-05-21T03:03:56","slug":"","status":"publish","type":"post","link":"https:\/\/savepearlharbor.com\/?p=366621","title":{"rendered":"<span>\u041f\u043e\u0434\u043e\u0431\u0438\u0435 CI\/CD c \u043c\u0438\u043a\u0440\u043e\u043a\u043e\u043d\u0442\u0440\u043e\u043b\u043b\u0435\u0440\u0430\u043c\u0438. Jenkins + GitLab + HeadlessBuild<\/span>"},"content":{"rendered":"<div><!--[--><!--]--><\/div>\n<div id=\"post-content-body\">\n<div>\n<div class=\"article-formatted-body article-formatted-body article-formatted-body_version-2\">\n<div xmlns=\"http:\/\/www.w3.org\/1999\/xhtml\">\n<p>\u041f\u0440\u0435\u0436\u0434\u0435 \u0432\u0441\u0435\u0433\u043e \u2013 \u0445\u043e\u0442\u0435\u043b\u043e\u0441\u044c \u0438\u0437\u0431\u0430\u0432\u0438\u0442\u044c \u0441\u0435\u0431\u044f \u043e\u0442 \u0440\u0443\u0442\u0438\u043d\u043d\u044b\u0445 \u043e\u043f\u0435\u0440\u0430\u0446\u0438\u0439, \u043a\u043e\u0442\u043e\u0440\u044b\u0435 \u043d\u0435\u043e\u0431\u0445\u043e\u0434\u0438\u043c\u043e \u043f\u0440\u043e\u043a\u0440\u0443\u0447\u0438\u0432\u0430\u0442\u044c \u0432 \u043a\u0430\u0436\u0434\u044b\u0439 \u0440\u0435\u043b\u0438\u0437 \u0430\u0440\u0442\u0435\u0444\u0430\u043a\u0442\u0430 \u043a\u0430\u0436\u0434\u043e\u0433\u043e \u043f\u0440\u043e\u0435\u043a\u0442\u0430. \u0412\u0442\u043e\u0440\u043e\u0435 \u2013 \u043f\u043e\u043d\u044f\u0442\u044c, \u043d\u0443\u0436\u0435\u043d \u043b\u0438 \u043c\u043d\u0435 \u0432\u043e\u043e\u0431\u0449\u0435 \u0442\u0430\u043a\u043e\u0439 \u043f\u043e\u0434\u0445\u043e\u0434 \u0443 \u0440\u0430\u0437\u0440\u0430\u0431\u043e\u0442\u043a\u0435 \u0438 \u0441\u043a\u043e\u043b\u044c\u043a\u043e \u043e\u0442 \u043d\u0435\u0433\u043e \u043f\u0440\u043e\u0444\u0438\u0442\u0430. \u0422\u0440\u0435\u0442\u044c\u0435 \u2013 \u0443\u0437\u043d\u0430\u0442\u044c \u043d\u0435\u043c\u043d\u043e\u0433\u043e \u043d\u043e\u0432\u043e\u0433\u043e<\/p>\n<p>\u0412\u043e\u0442 \u043d\u0435\u0441\u043a\u043e\u043b\u044c\u043a\u043e \u0441\u0441\u044b\u043b\u043e\u043a, \u0433\u0434\u0435 \u0435\u0441\u0442\u044c \u043d\u0435\u043a\u043e\u0442\u043e\u0440\u0430\u044f \u0438\u043d\u0444\u043e\u0440\u043c\u0430\u0446\u0438\u044f \u043f\u043e \u044d\u0442\u043e\u043c\u0443 \u0432\u043e\u043f\u0440\u043e\u0441\u0443:<\/p>\n<ul>\n<li>\n<p><a href=\"https:\/\/community.st.com\/s\/question\/0D53W00000ITwGRSA1\/how-to-use-headless-build-for-continuous-integration\" rel=\"noopener noreferrer nofollow\"><u>\u0432\u043e\u043f\u0440\u043e\u0441 \u043d\u0430 \u0441\u0430\u0439\u0442\u0435 ST<\/u><\/a>. \u041e\u0431\u0441\u0443\u0436\u0434\u0435\u043d\u0438\u0435 \u0438 \u0438\u043d\u0442\u0435\u0440\u0435\u0441\u043d\u044b\u0435 \u043c\u044b\u0441\u043b\u0438<\/p>\n<\/li>\n<li>\n<p><a href=\"https:\/\/www.youtube.com\/playlist?list=PL4cGeWgaBTe1uwiqIAc6fwPzPpvgPZI2J\" rel=\"noopener noreferrer nofollow\"><u>\u043e\u0442\u043b\u0438\u0447\u043d\u0435\u0439\u0448\u0438\u0439 \u043c\u0430\u0442\u0435\u0440\u0438\u0430\u043b \u0432 \u0432\u0438\u0434\u0435 \u0432\u0438\u0434\u0435\u043e<\/u><\/a> \u043d\u0430 \u0430\u043d\u0433\u043b\u0438\u0439\u0441\u043a\u043e\u043c \u0441 \u043f\u0440\u0438\u043c\u0435\u0440\u043e\u043c \u0443\u0441\u0442\u0430\u043d\u043e\u0432\u043a\u0438 \u0442\u043e\u0433\u043e \u0436\u0435 \u0441\u0430\u043c\u043e\u0433\u043e \u043d\u0430 \u043b\u043e\u043a\u0430\u043b\u044c\u043d\u043e\u0439 \u043c\u0430\u0448\u0438\u043d\u0435 \u0434\u043b\u044f \u043e\u0434\u043d\u043e\u0433\u043e \u0440\u0430\u0437\u0440\u0430\u0431\u043e\u0442\u0447\u0438\u043a\u0430.<\/p>\n<\/li>\n<li>\n<p><a href=\"https:\/\/embeddedartistry.com\/blog\/2018\/10\/18\/embedded-systems-testing-resources\" rel=\"noopener noreferrer nofollow\"><u>\u0431\u043e\u043b\u044c\u0448\u0435 \u0440\u0430\u0441\u0441\u043a\u0430\u0437\u044b\u0432\u0430\u044e\u0442 \u043f\u0440\u043e TDD, \u043d\u043e \u0435\u0441\u0442\u044c \u043e\u0442\u0434\u0435\u043b\u044c\u043d\u044b\u0435 \u0441\u0442\u0430\u0442\u044c\u0438 \u043f\u0440\u043e CI\/CD<\/u><\/a><\/p>\n<\/li>\n<\/ul>\n<blockquote>\n<p>\u041d\u0435 \u0437\u0430\u0431\u044b\u0432\u0430\u0435\u043c, \u0447\u0442\u043e \u043c\u043d\u0435 <strong>\u0441\u043e\u0432\u0435\u0440\u0448\u0435\u043d\u043d\u043e \u043d\u0435\u0438\u0437\u0432\u0435\u0441\u0442\u043d\u043e<\/strong> \u043a\u0430\u043a \u0434\u0435\u043b\u0430\u0442\u044c \u043f\u0440\u0430\u0432\u0438\u043b\u044c\u043d\u043e. \u0423\u043d\u0438\u0432\u0435\u0440\u0441\u0430\u043b\u044c\u043d\u043e\u0433\u043e \u0440\u0435\u0446\u0435\u043f\u0442\u0430 \u043d\u0435 \u043d\u0430\u0448\u043b\u043e\u0441\u044c, \u043f\u043e\u044d\u0442\u043e\u043c\u0443 \u0441\u043e\u0431\u0438\u0440\u0430\u044e \u0441\u0432\u043e\u0435\u0433\u043e \u041a\u0440\u0430\u043a\u0435\u043d\u0430 \u043d\u0430 win-\u0441\u0435\u0440\u0432\u0435\u0440\u0435(local).<\/p>\n<\/blockquote>\n<p>\u041f\u0440\u0435\u0436\u0434\u0435 \u0432\u0441\u0435\u0433\u043e, \u044f \u043e\u0442\u043a\u0430\u0437\u0430\u043b\u0441\u044f \u043e\u0442 \u0441\u043b\u043e\u044f \u0430\u0431\u0441\u0442\u0440\u0430\u043a\u0446\u0438\u0438 \u0441\u0432\u044f\u0437\u0430\u043d\u043d\u043e\u0439 \u0441 \u043a\u043e\u043d\u0442\u0435\u0439\u043d\u0435\u0440\u0438\u0437\u0430\u0446\u0438\u0435\u0439. \u041f\u0440\u043e\u0448\u0443 \u043f\u0440\u043e\u0449\u0435\u043d\u0438\u044f, \u043b\u044e\u0431\u0438\u0442\u0435\u043b\u0438 Docker, \u043c\u043d\u0435 \u043e\u043d \u043f\u043e\u043a\u0430 \u043d\u0435 \u0437\u0430\u0448\u0435\u043b. \u041e\u0442\u043b\u0438\u0447\u043d\u0430\u044f \u0438\u0434\u0435\u044f \u0438\u0441\u043f\u043e\u043b\u044c\u0437\u043e\u0432\u0430\u0442\u044c \u043a\u043e\u043d\u0442\u0435\u0439\u043d\u0435\u0440\u044b, \u043d\u043e \u0434\u0443\u0445\u043e\u0442\u044b \u043f\u0440\u0435\u0434\u0432\u0438\u0436\u0443 \u0438 \u0442\u0430\u043a \u0441 \u0433\u043e\u043b\u043e\u0432\u043e\u0439 \u2013 \u043b\u0443\u0447\u0448\u0435 \u043d\u0435 \u0443\u0441\u043b\u043e\u0436\u043d\u044f\u0442\u044c \u201c\u0430\u0440\u0445\u0438\u0442\u0435\u043a\u0442\u0443\u0440\u0443\u201d \u0435\u0449\u0435 \u043e\u0434\u043d\u0438\u043c \u0441\u043b\u043e\u0435\u043c. \u041e\u0441\u0442\u0430\u0432\u0438\u043c \u043d\u0430 \u043b\u0443\u0447\u0448\u0435\u0435 \u0432\u0440\u0435\u043c\u044f. \u0422\u0440\u0435\u0437\u0432\u043e \u043e\u0446\u0435\u043d\u0438\u0432 \u0432\u043e\u0437\u043c\u043e\u0436\u043d\u043e\u0441\u0442\u0438 \u0441\u0432\u043e\u0438\u0445 \u043f\u043e\u0437\u043d\u0430\u043d\u0438\u0439 \u044f \u043f\u043e\u043d\u044f\u043b, \u0447\u0442\u043e \u0441\u043b\u043e\u0438 \u0438\u0437 Groovy pipeline-\u0441\u043a\u0440\u0438\u043f\u0442\u043e\u0432, batch-\u0441\u043a\u0440\u0438\u043f\u0442\u043e\u0432 \u043f\u0440\u0435\u0434\u043e\u0441\u0442\u0430\u0432\u043b\u044f\u044e\u0442 \u0443\u0436\u0435 \u043d\u0435\u043c\u0430\u043b\u0435\u043d\u044c\u043a\u0438\u0439 \u043a\u043e\u043d\u0432\u0435\u0439\u0435\u0440\u043d\u044b\u0439 \u0430\u0434.<\/p>\n<p>\u041a\u043b\u0430\u0441\u0441\u0438\u0447\u0435\u0441\u043a\u0430\u044f \u0440\u0430\u0437\u0440\u0430\u0431\u043e\u0442\u043a\u0430 \u043f\u043e\u0434 MCU:<\/p>\n<ol>\n<li>\n<p>\u0421\u0438\u043d\u0445\u0440\u043e\u043d\u0438\u0437\u0430\u0446\u0438\u044f \u0441 GitLab(GitHub, SVN\u2026)<\/p>\n<\/li>\n<li>\n<p>\u0412\u043d\u0435\u0441\u0435\u043d\u0438\u0435 \u0438\u0437\u043c\u0435\u043d\u0435\u043d\u0438\u0439 \u0432 \u043f\u0440\u043e\u0448\u0438\u0432\u043a\u0443<\/p>\n<\/li>\n<li>\n<p>\u0421\u0431\u043e\u0440\u043a\u0430 \u043f\u0440\u043e\u0448\u0438\u0432\u043a\u0438 (\u043d\u0435\u043e\u0431\u0445\u043e\u0434\u0438\u043c\u043e \u043f\u043e\u0434\u0433\u043e\u0442\u043e\u0432\u043b\u0435\u043d\u043d\u043e\u0435 \u0440\u0430\u0431\u043e\u0447\u0435\u0435 \u043e\u043a\u0440\u0443\u0436\u0435\u043d\u0438\u0435)<\/p>\n<\/li>\n<li>\n<p>\u041f\u043e\u0434\u0433\u043e\u0442\u043e\u0432\u043a\u0430 \u0430\u0440\u0442\u0435\u0444\u0430\u043a\u0442\u043e\u0432 \u0441\u0431\u043e\u0440\u043a\u0438 \u043a \u043f\u0443\u0431\u043b\u0438\u043a\u0430\u0446\u0438\u0438<\/p>\n<\/li>\n<li>\n<p>\u041f\u0443\u0431\u043b\u0438\u043a\u0430\u0446\u0438\u044f \u043f\u0440\u043e\u0448\u0438\u0432\u043e\u043a \u043d\u0430 \u0441\u0435\u0440\u0432\u0435\u0440\u0435<\/p>\n<\/li>\n<li>\n<p>\u0420\u0443\u0447\u043d\u043e\u0435 \u0434\u043e\u0431\u0430\u0432\u043b\u0435\u043d\u0438\u0435 \u043f\u0440\u043e\u0448\u0438\u0432\u043e\u043a \u043d\u0430 \u043d\u043e\u0432\u044b\u0445 \u0440\u0435\u043b\u0438\u0437\u0430\u0445 \u043f\u0440\u0438 \u043f\u043e\u0441\u0442\u0430\u0432\u043a\u0435 \u0438\u0445 \u0432 \u0441\u043e\u0441\u0442\u0430\u0432\u0435 \u043a\u043e\u043c\u043f\u043b\u0435\u043a\u0441\u0430 \u041f\u041e<\/p>\n<\/li>\n<\/ol>\n<figure class=\"full-width\"><img loading=\"lazy\" decoding=\"async\" src=\"https:\/\/habrastorage.org\/r\/w1560\/getpro\/habr\/upload_files\/828\/ed6\/fad\/828ed6fade680fb91e2ffee87d7bade9.png\" width=\"845\" height=\"674\" data-src=\"https:\/\/habrastorage.org\/getpro\/habr\/upload_files\/828\/ed6\/fad\/828ed6fade680fb91e2ffee87d7bade9.png\"\/><\/figure>\n<p>\u041a\u0430\u043a \u044f \u044d\u0442\u043e \u0432\u0438\u0436\u0443 \u0441 CI\/CD: <\/p>\n<ol>\n<li>\n<p>\u0421\u0438\u043d\u0445\u0440\u043e\u043d\u0438\u0437\u0430\u0446\u0438\u044f \u0441 Git<\/p>\n<\/li>\n<li>\n<p>\u0412\u043d\u0435\u0441\u0435\u043d\u0438\u0435 \u0438\u0437\u043c\u0435\u043d\u0435\u043d\u0438\u0439 \u0432 \u043f\u0440\u043e\u0448\u0438\u0432\u043a\u0443<\/p>\n<\/li>\n<li>\n<p>\u0414\u043e\u0431\u0430\u0432\u043b\u0435\u043d\u0438\u0435 \u0442\u0435\u0433\u0430 \u0442\u0435\u043a\u0443\u0449\u0435\u0439 \u0432\u0435\u0440\u0441\u0438\u0438<\/p>\n<\/li>\n<li>\n<p>\u041f\u0443\u0448 \u0432 Git<\/p>\n<\/li>\n<\/ol>\n<p>\u0410\u0432\u0442\u043e\u043c\u0430\u0442\u0438\u0437\u0438\u0440\u043e\u0432\u0430\u043d\u043d\u0430\u044f \u0441\u0431\u043e\u0440\u043a\u0430 \u0438 \u043f\u0443\u0431\u043b\u0438\u043a\u0430\u0446\u0438\u044f:<\/p>\n<figure class=\"full-width\"><img loading=\"lazy\" decoding=\"async\" src=\"https:\/\/habrastorage.org\/r\/w1560\/getpro\/habr\/upload_files\/4bd\/4d9\/c4b\/4bd4d9c4b9b749dbe68bc70365fc636b.png\" width=\"1024\" height=\"637\" data-src=\"https:\/\/habrastorage.org\/getpro\/habr\/upload_files\/4bd\/4d9\/c4b\/4bd4d9c4b9b749dbe68bc70365fc636b.png\"\/><\/figure>\n<p>\u0412\u0438\u0436\u0443 \u0442\u0443\u0442 \u043d\u0435\u043a\u043e\u0442\u043e\u0440\u044b\u0435 \u043f\u043b\u044e\u0441\u044b:<\/p>\n<ul>\n<li>\n<p>\u0410\u0432\u0442\u043e\u043c\u0430\u0442\u0438\u0437\u0430\u0446\u0438\u044f \u0437\u0430\u0434\u0430\u0447:<\/p>\n<ul>\n<li>\n<p>\u0421\u0431\u043e\u0440\u043a\u0430 \u043f\u0440\u043e\u0448\u0438\u0432\u043e\u043a<\/p>\n<\/li>\n<li>\n<p>\u041f\u0440\u043e\u0433\u043e\u043d \u0442\u0435\u0441\u0442\u043e\u0432<\/p>\n<\/li>\n<li>\n<p>\u041f\u043e\u0434\u0433\u043e\u0442\u043e\u0432\u043a\u0430 \u043f\u0440\u043e\u0448\u0438\u0432\u043e\u043a \u043a \u043f\u0443\u0431\u043b\u0438\u043a\u0430\u0446\u0438\u0438 (\u043f\u043e\u0434\u043f\u0438\u0441\u044c, \u043f\u0440\u0430\u0432\u043a\u0430, \u0438\u0437\u043c\u0435\u043d\u0435\u043d\u0438\u0435 \u0438\u043c\u0435\u043d\u0438)<\/p>\n<\/li>\n<li>\n<p>\u041f\u0443\u0431\u043b\u0438\u043a\u0430\u0446\u0438\u044f \u043d\u0430 \u0441\u0435\u0440\u0432\u0435\u0440<\/p>\n<\/li>\n<\/ul>\n<\/li>\n<li>\n<p>\u0418\u0441\u043f\u043e\u043b\u044c\u0437\u043e\u0432\u0430\u043d\u0438\u0435 \u0435\u0434\u0438\u043d\u043e\u0433\u043e \u043d\u0430\u0431\u043e\u0440\u0430 \u0438\u043d\u0441\u0442\u0440\u0443\u043c\u0435\u043d\u0442\u043e\u0432 \u0434\u043b\u044f \u0441\u0431\u043e\u0440\u043a\u0438<\/p>\n<\/li>\n<li>\n<p>\u0421\u043d\u0438\u0436\u0435\u043d\u0438\u0435 \u0441\u043b\u043e\u0436\u043d\u043e\u0441\u0442\u0438 \u0432\u0445\u043e\u0434\u0430 \u0434\u043b\u044f \u043d\u043e\u0432\u044b\u0445 \u0441\u043e\u0442\u0440\u0443\u0434\u043d\u0438\u043a\u043e\u0432 (\u0441\u043f\u043e\u0440\u043d\u043e, \u043d\u043e \u0432\u0441\u0435 \u0436\u0435 \u0432 \u043f\u0435\u0440\u0441\u043f\u0435\u043a\u0442\u0438\u0432\u0435)<\/p>\n<\/li>\n<li>\n<p>\u0412\u043e\u0437\u043c\u043e\u0436\u043d\u043e\u0441\u0442\u044c \u0431\u044b\u0441\u0442\u0440\u043e \u043f\u043e\u043b\u0443\u0447\u0438\u0442\u044c \u043d\u043e\u0432\u0443\u044e \u0432\u0435\u0440\u0441\u0438\u044e \u043f\u0440\u043e\u0448\u0438\u0432\u043a\u0438 \u0431\u0435\u0437 \u043d\u0435\u043e\u0431\u0445\u043e\u0434\u0438\u043c\u043e\u0441\u0442\u0438 \u043d\u0430\u0441\u0442\u0440\u0430\u0438\u0432\u0430\u0442\u044c \u0440\u0430\u0431\u043e\u0447\u0435\u0435 \u043e\u043a\u0440\u0443\u0436\u0435\u043d\u0438\u0435 (\u0442\u043e\u0436\u0435 \u0441\u043f\u043e\u0440\u043d\u043e, \u043d\u043e \u0438\u043d\u043e\u0433\u0434\u0430 \u043e\u0447\u0435\u043d\u044c \u0431\u044b\u0432\u0430\u0435\u0442 \u043d\u0443\u0436\u043d\u043e \u0434\u043b\u044f \u0445\u043e\u0442\u0444\u0438\u043a\u0441\u0430)<\/p>\n<\/li>\n<\/ul>\n<p>\u0414\u0430, \u044f \u0432\u043f\u043e\u043b\u043d\u0435 \u043f\u043e\u043d\u0438\u043c\u0430\u044e, \u0447\u0442\u043e \u043f\u043e\u0434\u043e\u0431\u043d\u0430\u044f \u0441\u0438\u0441\u0442\u0435\u043c\u0430 \u0434\u0430\u0441\u0442 \u043d\u0430\u0438\u0431\u043e\u043b\u044c\u0448\u0443\u044e \u043e\u0442\u0434\u0430\u0447\u0443 \u043f\u0440\u0438 \u0438\u0441\u043f\u043e\u043b\u044c\u0437\u043e\u0432\u0430\u043d\u0438\u0438 Make\/CMake \u0438 \u043a\u043e\u043d\u0442\u0435\u0439\u043d\u0435\u0440\u043e\u0432 (\u0434\u043b\u044f \u0438\u0437\u043e\u043b\u0438\u0440\u043e\u0432\u0430\u043d\u0438\u044f \u0441\u0440\u0435\u0434\u044b \u0438 \u0440\u0430\u0431\u043e\u0442\u044b \u0441 \u0443\u0436\u0435 \u043f\u043e\u0434\u0433\u043e\u0442\u043e\u0432\u043b\u0435\u043d\u043d\u044b\u043c\u0438 \u0441\u0440\u0435\u0434\u0430\u043c\u0438). \u041d\u043e \u0438\u043c\u0435\u0435\u043c, \u0447\u0442\u043e \u0438\u043c\u0435\u0435\u043c \u2013 \u043f\u0435\u0440\u0435\u043f\u0438\u0441\u044b\u0432\u0430\u0442\u044c \u0432\u0435\u0441\u044c \u0432\u043e\u0440\u043e\u0445 \u043f\u0440\u043e\u0435\u043a\u0442\u043e\u0432 \u0440\u0430\u0434\u0438 \u0441\u0432\u043e\u0435\u0433\u043e \u0438\u043d\u0442\u0435\u0440\u0435\u0441\u0430 <em>\u0432 \u043d\u0435\u0440\u0430\u0431\u043e\u0447\u0435\u0435 \u0432\u0440\u0435\u043c\u044f<\/em>, \u044d\u0442\u043e \u0432\u044b\u0448\u0435 \u043c\u043e\u0438\u0445 \u0441\u0438\u043b.<\/p>\n<p>\u0414\u0430\u043b\u044c\u043d\u0435\u0439\u0448\u0435\u0435 \u043e\u043f\u0438\u0441\u0430\u043d\u0438\u0435 \u0431\u0443\u0434\u0435\u0442 \u0434\u043b\u044f \u0441\u0438\u0441\u0442\u0435\u043c\u044b \u043a\u043e\u043d\u0442\u0440\u043e\u043b\u044f \u0432\u0435\u0440\u0441\u0438\u0439 <strong>GitLab<\/strong>. <\/p>\n<p>\u0423 \u043d\u0438\u0445 \u0435\u0441\u0442\u044c \u043e\u0442\u043b\u0438\u0447\u043d\u0430\u044f \u0434\u043e\u043a\u0443\u043c\u0435\u043d\u0442\u0430\u0446\u0438\u044f \u043f\u043e \u0438\u043d\u0442\u0435\u0433\u0440\u0430\u0446\u0438\u0438 <strong>GitLab<\/strong> \u0441 <strong>Jenkins<\/strong> (<a href=\"https:\/\/docs.gitlab.com\/ee\/integration\/jenkins.html\" rel=\"noopener noreferrer nofollow\">https:\/\/docs.gitlab.com\/ee\/integration\/jenkins.html<\/a>), \u043b\u0443\u0447\u0448\u0435 \u0434\u0435\u043b\u0430\u0442\u044c \u043f\u043e \u043d\u0435\u0439, \u0430 \u0441\u044e\u0434\u0430 \u043b\u0438\u0448\u044c \u043f\u043e\u0441\u043c\u0430\u0442\u0440\u0438\u0432\u0430\u0442\u044c \u2013 \u0432\u0434\u0440\u0443\u0433 \u0447\u0435\u0433\u043e \u0431\u0443\u0434\u0435\u0442 \u0438\u043d\u0442\u0435\u0440\u0435\u0441\u043d\u043e\u0433\u043e<\/p>\n<h3>\u041f\u0440\u043e Jenkins<\/h3>\n<p>\u0421\u0443\u0442\u044c \u0435\u0433\u043e \u2013 \u043b\u0438\u0448\u044c \u0441\u043a\u0440\u0438\u043f\u0442-\u0440\u0430\u043d\u043d\u0435\u0440 \u0438 \u043c\u0435\u0441\u0442\u043e \u0445\u0440\u0430\u043d\u0435\u043d\u0438\u044f<br \/>\u0414\u0436\u0435\u043d\u043a\u0438\u043d\u0441 \u043c\u043e\u0436\u0435\u0442 \u043f\u043e\u0434\u0445\u0432\u0430\u0442\u044b\u0432\u0430\u0442\u044c \u0432\u0435\u0431-\u0445\u0443\u043a\u0438 \u0441 \u0433\u0438\u0442\u043b\u0430\u0431\u0430 \u0438 \u0441\u0430\u043c \u043d\u0430\u0447\u0438\u043d\u0430\u0442\u044c \u0432\u044b\u043f\u043e\u043b\u043d\u044f\u0442\u044c \u0441\u043a\u0440\u0438\u043f\u0442\u044b<br \/>\u041b\u0443\u0447\u0448\u0435 \u0432\u0441\u0435\u0433\u043e, \u043e\u043f\u044f\u0442\u044c \u0436\u0435, <a href=\"https:\/\/www.jenkins.io\/doc\/book\/using\/\" rel=\"noopener noreferrer nofollow\"><u>\u043f\u043e\u0447\u0438\u0442\u0430\u0442\u044c \u0434\u043e\u043a\u0443\u043c\u0435\u043d\u0442\u0430\u0446\u0438\u044e<\/u><\/a> \u2013 \u0437\u0434\u0435\u0441\u044c \u0431\u0443\u0434\u0435\u0442 \u043b\u0438\u0448\u044c \u043e\u0447\u0435\u043d\u044c \u043f\u043e\u0432\u0435\u0440\u0445\u043d\u043e\u0441\u0442\u043d\u0430\u044f \u0438\u043d\u0444\u043e\u0440\u043c\u0430\u0446\u0438\u044f<\/p>\n<p>\u0412 Jenkins \u043f\u0440\u043e\u043f\u0438\u0441\u044b\u0432\u0430\u0435\u0442\u0441\u044f: <\/p>\n<ul>\n<li>\n<p>git \u0441\u0441\u044b\u043b\u043a\u0430 \u0434\u043e \u043f\u0440\u043e\u0435\u043a\u0442\u0430 \u0441 \u043a\u043e\u0434\u043e\u043c \u0438\/\u0438\u043b\u0438 \u043e\u043f\u0440\u0435\u0434\u0435\u043b\u0435\u043d\u043d\u043e\u0439 \u0432\u0435\u0442\u043a\u043e\u0439<\/p>\n<\/li>\n<li>\n<p>\u041e\u0442\u043a\u0443\u0434\u0430 \u0431\u0440\u0430\u0442\u044c \u0444\u0430\u0439\u043b \u0441\u043e \u0441\u043a\u0440\u0438\u043f\u0442\u043e\u043c \u043a\u043e\u043d\u0444\u0438\u0433\u0443\u0440\u0430\u0446\u0438\u0438 \u0434\u0436\u0435\u043d\u043a\u0438\u043d\u0441\u0430. \u0412 \u044d\u0442\u043e\u043c \u0441\u043a\u0440\u0438\u043f\u0442\u0435 \u043f\u0440\u043e\u043f\u0438\u0441\u044b\u0432\u0430\u044e\u0442\u0441\u044f \u0448\u0430\u0433\u0438 \u0438 \u043a\u0430\u043a\u0438\u0435 \u0431\u0430\u0442\u043d\u0438\u043a\u0438 \u0432\u044b\u043f\u043e\u043b\u043d\u0438\u0442\u044c \u2013 \u0434\u043e\u0441\u0442\u0430\u0442\u043e\u0447\u043d\u043e \u043f\u0440\u043e\u0441\u0442\u043e. <\/p>\n<\/li>\n<\/ul>\n<p>\u0422\u043e \u0435\u0441\u0442\u044c, \u043f\u0440\u0430\u043a\u0442\u0438\u0447\u0435\u0441\u043a\u0438 \u0432\u0441\u044f \u0440\u0430\u0431\u043e\u0442\u0430 \u0443 Jenkins \u0431\u0443\u0434\u0435\u0442 \u0441\u0442\u044f\u043d\u0443\u0442\u044c \u0441\u0431\u043e\u0440\u043a\u0443, \u0441\u043e\u0431\u0440\u0430\u0442\u044c \u0438 \u0437\u0430\u043f\u0443\u0441\u0442\u0438\u0442\u044c \u043f\u0430\u0440\u0443 \u0431\u0430\u0442\u043d\u0438\u043a\u043e\u0432. <\/p>\n<p>\u0415\u0441\u0442\u044c \u0434\u0432\u0430 \u043e\u0441\u043d\u043e\u0432\u043d\u044b\u0445 \u0432\u0430\u0440\u0438\u0430\u043d\u0442\u0430 \u0438\u0441\u043f\u043e\u043b\u044c\u0437\u043e\u0432\u0430\u043d\u0438\u044f Jenkins. \u0421\u043e \u0441\u0432\u043e\u0431\u043e\u0434\u043d\u043e\u0439 \u043a\u043e\u043d\u0444\u0438\u0433\u0443\u0440\u0430\u0446\u0438\u0435\u0439 \u0438 Pipeline<\/p>\n<p>\u0412 \u043f\u0435\u0440\u0432\u0443\u044e \u043e\u0447\u0435\u0440\u0435\u0434\u044c, \u043d\u0430\u0436\u0438\u043c\u0430\u0435\u043c \u0441\u043e\u0437\u0434\u0430\u0442\u044c Item (Item \u2013 \u044d\u0442\u043e <strong>\u043e\u0434\u0438\u043d \u043f\u0440\u043e\u0435\u043a\u0442<\/strong> \u0434\u043b\u044f \u0441\u0431\u043e\u0440\u043a\u0438)<\/p>\n<figure class=\"\"><img loading=\"lazy\" decoding=\"async\" src=\"https:\/\/habrastorage.org\/r\/w1560\/getpro\/habr\/upload_files\/05b\/362\/566\/05b362566eb81e5505405843a5158558.png\" width=\"315\" height=\"297\" data-src=\"https:\/\/habrastorage.org\/getpro\/habr\/upload_files\/05b\/362\/566\/05b362566eb81e5505405843a5158558.png\"\/><\/figure>\n<p>\u0422\u0443\u0442 \u043d\u0443\u0436\u043d\u043e \u0432\u043f\u0438\u0441\u0430\u0442\u044c \u043d\u0430\u0437\u0432\u0430\u043d\u0438\u0435 \u0437\u0430\u0434\u0430\u0447\u0438 \u0438 \u0432\u044b\u0431\u0440\u0430\u0442\u044c \u0442\u0438\u043f<\/p>\n<figure class=\"full-width\"><img loading=\"lazy\" decoding=\"async\" src=\"https:\/\/habrastorage.org\/r\/w1560\/getpro\/habr\/upload_files\/88a\/41c\/0f6\/88a41c0f69bb946ab8b95b294144a197.png\" width=\"1024\" height=\"264\" data-src=\"https:\/\/habrastorage.org\/getpro\/habr\/upload_files\/88a\/41c\/0f6\/88a41c0f69bb946ab8b95b294144a197.png\"\/><\/figure>\n<p>\u0414\u0430\u043b\u0435\u0435 \u043d\u0443\u0436\u043d\u043e \u0432\u043f\u0438\u0441\u0430\u0442\u044c \u0441\u0441\u044b\u043b\u043a\u0443 \u043d\u0430 \u043f\u0440\u043e\u0435\u043a\u0442 \u0438 \u0434\u0430\u043d\u043d\u044b\u0435 \u0430\u0432\u0442\u043e\u0440\u0438\u0437\u0430\u0446\u0438\u0438<\/p>\n<figure class=\"full-width\"><img loading=\"lazy\" decoding=\"async\" src=\"https:\/\/habrastorage.org\/r\/w1560\/getpro\/habr\/upload_files\/210\/78d\/d9e\/21078dd9e2deac158c822144cb8677d2.png\" width=\"1024\" height=\"599\" data-src=\"https:\/\/habrastorage.org\/getpro\/habr\/upload_files\/210\/78d\/d9e\/21078dd9e2deac158c822144cb8677d2.png\"\/><\/figure>\n<p>\u0422\u0440\u0438\u0433\u0433\u0435\u0440\u044b \u0441\u0431\u043e\u0440\u043a\u0438 \u043e\u043f\u0440\u0435\u0434\u0435\u043b\u044f\u044e\u0442 \u043f\u043e \u043a\u0430\u043a\u043e\u043c\u0443 \u0438\u0437 \u0441\u043e\u0431\u044b\u0442\u0438\u0439 \u0431\u0443\u0434\u0435\u0442 \u0432\u044b\u043f\u043e\u043b\u043d\u0435\u043d\u0430 \u0437\u0430\u0434\u0430\u0447\u0430<\/p>\n<figure class=\"\"><img loading=\"lazy\" decoding=\"async\" src=\"https:\/\/habrastorage.org\/r\/w1560\/getpro\/habr\/upload_files\/787\/6af\/289\/7876af2895affdfeb9bd6f713bdf5012.png\" width=\"512\" height=\"400\" data-src=\"https:\/\/habrastorage.org\/getpro\/habr\/upload_files\/787\/6af\/289\/7876af2895affdfeb9bd6f713bdf5012.png\"\/><\/figure>\n<p><strong>\u0421\u0432\u043e\u0431\u043e\u0434\u043d\u0430\u044f \u043a\u043e\u043d\u0444\u0438\u0433\u0443\u0440\u0430\u0446\u0438\u044f<\/strong> \u043f\u043e\u0437\u0432\u043e\u043b\u044f\u0435\u0442 \u043d\u0430\u0441\u0442\u0440\u043e\u0438\u0442\u044c \u0432\u0441\u0435 \u0448\u0430\u0433\u0438 \u0441\u0431\u043e\u0440\u043a\u0438 \u0447\u0435\u0440\u0435\u0437 \u0432\u0435\u0431-GUI. \u0412\u043e\u0442 \u043f\u0440\u0438\u043c\u0435\u0440<\/p>\n<figure class=\"full-width\"><img loading=\"lazy\" decoding=\"async\" src=\"https:\/\/habrastorage.org\/r\/w1560\/getpro\/habr\/upload_files\/a2b\/32f\/cb4\/a2b32fcb47a1223fc670ec9edf47d073.png\" width=\"1024\" height=\"669\" data-src=\"https:\/\/habrastorage.org\/getpro\/habr\/upload_files\/a2b\/32f\/cb4\/a2b32fcb47a1223fc670ec9edf47d073.png\"\/><\/figure>\n<p><strong>Pipeline<\/strong> \u2013 \u0431\u043e\u043b\u0435\u0435 \u0433\u0438\u0431\u043a\u0430\u044f \u0432 \u043d\u0430\u0441\u0442\u0440\u043e\u0439\u043a\u0435 \u0441\u0438\u0441\u0442\u0435\u043c\u0430, \u043a\u043e\u0442\u043e\u0440\u0430\u044f \u043f\u043e\u0437\u0432\u043e\u043b\u044f\u0435\u0442 \u0438\u0441\u043f\u043e\u043b\u043d\u044f\u0442\u044c \u0441\u043a\u0440\u0438\u043f\u0442 \u0441\u0431\u043e\u0440\u043a\u0438 \u043f\u0440\u0438 \u043d\u0430\u0441\u0442\u0443\u043f\u043b\u0435\u043d\u0438\u0438 \u0441\u043e\u0431\u044b\u0442\u0438\u044f-\u0442\u0440\u0438\u0433\u0433\u0435\u0440\u0430. \u0428\u0430\u0433\u0438 \u0441\u0431\u043e\u0440\u043a\u0438 \u043e\u043f\u0440\u0435\u0434\u0435\u043b\u044f\u0435\u0442 \u0441\u043a\u0440\u0438\u043f\u0442 \u043d\u0430 \u044f\u0437\u044b\u043a\u0435 <strong>Groovy<\/strong>. \u0422\u0440\u0438\u0433\u0433\u0435\u0440\u044b \u0441\u0431\u043e\u0440\u043a\u0438 \u0438 git-\u0430\u0432\u0442\u043e\u0440\u0438\u0437\u0430\u0446\u0438\u044f \u043e\u0441\u0442\u0430\u044e\u0442\u0441\u044f \u0442\u0435\u043c\u0438 \u0436\u0435 \u0434\u043b\u044f \u043e\u0431\u0435\u0438\u0445 \u0441\u0438\u0441\u0442\u0435\u043c.<\/p>\n<figure class=\"full-width\"><img loading=\"lazy\" decoding=\"async\" src=\"https:\/\/habrastorage.org\/r\/w1560\/getpro\/habr\/upload_files\/99f\/15f\/243\/99f15f2434d16545885b78460e557e5c.png\" width=\"1024\" height=\"112\" data-src=\"https:\/\/habrastorage.org\/getpro\/habr\/upload_files\/99f\/15f\/243\/99f15f2434d16545885b78460e557e5c.png\"\/><\/figure>\n<p><strong>Pipeline<\/strong> <strong>Script<\/strong> \u043f\u043e\u0437\u0432\u043e\u043b\u044f\u0435\u0442 \u0437\u0430\u043f\u0438\u0441\u0430\u0442\u044c \u0441\u043a\u0440\u0438\u043f\u0442 \u0432 \u043e\u043a\u043d\u0435 \u0432 \u0432\u0435\u0431-GUI. <strong>Pipeline<\/strong> <strong>Script from SCM<\/strong> \u2013 \u0441\u043a\u0430\u0447\u0438\u0432\u0430\u0435\u0442 \u0438 \u0438\u0441\u043f\u043e\u043b\u043d\u044f\u0435\u0442 Groovy-\u0441\u043a\u0440\u0438\u043f\u0442(<strong>Jenkinsfile<\/strong>) \u043d\u0430\u043f\u0440\u044f\u043c\u0443\u044e \u0438\u0437 \u0440\u0435\u043f\u043e\u0437\u0438\u0442\u043e\u0440\u0438\u044f \u0441 \u043f\u0440\u043e\u0435\u043a\u0442\u043e\u043c. <\/p>\n<figure class=\"full-width\"><img loading=\"lazy\" decoding=\"async\" src=\"https:\/\/habrastorage.org\/r\/w1560\/getpro\/habr\/upload_files\/804\/577\/b09\/804577b090a481b4dd1584dfb0451958.png\" width=\"1024\" height=\"811\" data-src=\"https:\/\/habrastorage.org\/getpro\/habr\/upload_files\/804\/577\/b09\/804577b090a481b4dd1584dfb0451958.png\"\/><\/figure>\n<p>\u041e\u0431\u0440\u0430\u0442\u0438\u0442\u0435 \u0432\u043d\u0438\u043c\u0430\u043d\u0438\u0435, \u0447\u0442\u043e \u0438\u043c\u044f \u0444\u0430\u0439\u043b\u0430-\u0441\u043a\u0440\u0438\u043f\u0442\u0430 \u0434\u043e\u043b\u0436\u043d\u043e \u0431\u044b\u0442\u044c \u0443\u043a\u0430\u0437\u0430\u043d\u043e \u0432 <strong>Script Path<\/strong><\/p>\n<h3>\u0428\u0430\u0433\u0438 \u0434\u043b\u044f \u043d\u0430\u0441\u0442\u0440\u043e\u0439\u043a\u0438 \u0441\u0432\u043e\u0435\u0433\u043e \u043f\u0440\u043e\u0435\u043a\u0442\u0430<\/h3>\n<p>\u0421\u043a\u0430\u0447\u0430\u043b Jenkins \u0441 \u043e\u0444\u0438\u0446\u0438\u0430\u043b\u044c\u043d\u043e\u0433\u043e \u0441\u0430\u0439\u0442\u0430. \u0417\u0430\u043f\u0443\u0441\u0442\u0438\u043b, \u0443\u0441\u0442\u0430\u043d\u043e\u0432\u0438\u043b, \u043d\u0438\u0447\u0435\u0433\u043e \u0441\u043b\u043e\u0436\u043d\u043e\u0433\u043e. \u0423\u0441\u0442\u0430\u043d\u043e\u0432\u0438\u043b <strong>GitLab, Pipeline: Stage View, Pipeline, Folders, Credentials, CppCheck<\/strong> \u0438 \u0435\u0449\u0435 \u043f\u0430\u0440\u0443 \u043f\u043b\u0430\u0433\u0438\u043d\u043e\u0432 &#8212; \u0442\u0443\u0442 \u0443\u0436 \u043d\u0430 \u0432\u0430\u0448 \u0432\u043a\u0443\u0441. \u041f\u0435\u0440\u0435\u0437\u0430\u043f\u0443\u0441\u0442\u0438\u043b Jenkins.<\/p>\n<p>\u0415\u0449\u0435 \u0432 Jenkins \u043f\u0440\u043e\u043f\u0438\u0441\u0430\u043b \u0433\u043b\u043e\u0431\u0430\u043b\u044c\u043d\u044b\u0435 \u043f\u0435\u0440\u0435\u043c\u0435\u043d\u043d\u044b\u0435 \u0441 \u043e\u0441\u043e\u0431\u044b\u043c\u0438 \u043f\u0443\u0442\u044f\u043c\u0438 (IDE, cppcheck, \u043f\u0430\u043f\u043a\u0430 \u0441 bat-\u0444\u0430\u0439\u043b\u0430\u043c\u0438 \u0438 \u0442.\u0434.)<\/p>\n<figure class=\"full-width\"><img loading=\"lazy\" decoding=\"async\" src=\"https:\/\/habrastorage.org\/r\/w1560\/getpro\/habr\/upload_files\/cd2\/8ee\/f32\/cd28eef32478168f8a6d025604ffb2b6.png\" width=\"1024\" height=\"858\" data-src=\"https:\/\/habrastorage.org\/getpro\/habr\/upload_files\/cd2\/8ee\/f32\/cd28eef32478168f8a6d025604ffb2b6.png\"\/><\/figure>\n<p>\u0412 \u043a\u043e\u043d\u0444\u0438\u0433\u0443\u0440\u0430\u0446\u0438\u0438 \u0441\u0438\u0441\u0442\u0435\u043c\u044b Jenkins \u0432 \u0440\u0430\u0437\u0434\u0435\u043b\u0435 GitLab \u0432\u044b\u0441\u0442\u0430\u0432\u0438\u043b \u0441\u0441\u044b\u043b\u043a\u0443 \u043d\u0430 ip-\u0430\u0434\u0440\u0435\u0441 GitLab \u0438 \u0434\u043e\u0431\u0430\u0432\u0438\u043b \u0430\u0432\u0442\u043e\u0440\u0438\u0437\u0430\u0446\u0438\u044e \u043f\u043e \u0442\u043e\u043a\u0435\u043d\u0443 GitLab API. <\/p>\n<figure class=\"full-width\"><img loading=\"lazy\" decoding=\"async\" src=\"https:\/\/habrastorage.org\/r\/w1560\/getpro\/habr\/upload_files\/54f\/058\/661\/54f058661121554e8adedbefa5aa1514.png\" width=\"1024\" height=\"442\" data-src=\"https:\/\/habrastorage.org\/getpro\/habr\/upload_files\/54f\/058\/661\/54f058661121554e8adedbefa5aa1514.png\"\/><\/figure>\n<p>\u0422\u043e\u043a\u0435\u043d \u0433\u0435\u043d\u0435\u0440\u0438\u0440\u0443\u0435\u0442\u0441\u044f \u0432 GitLab \u0438 \u0434\u043b\u044f \u043d\u0435\u0433\u043e \u0432\u044b\u0441\u0442\u0430\u0432\u0438\u043b \u0434\u043e\u0441\u0442\u0443\u043f \u043a API<\/p>\n<figure class=\"full-width\"><img loading=\"lazy\" decoding=\"async\" src=\"https:\/\/habrastorage.org\/r\/w1560\/getpro\/habr\/upload_files\/ab5\/11d\/22c\/ab511d22c1366549825b4c91e2d60933.png\" width=\"1024\" height=\"447\" data-src=\"https:\/\/habrastorage.org\/getpro\/habr\/upload_files\/ab5\/11d\/22c\/ab511d22c1366549825b4c91e2d60933.png\"\/><\/figure>\n<p>\u0412 \u043d\u0430\u0441\u0442\u0440\u043e\u0439\u043a\u0430\u0445 GitLab-\u043f\u0440\u043e\u0435\u043a\u0442\u0430 \u0434\u043b\u044f \u0441\u0431\u043e\u0440\u043a\u0438 \u0432 <strong>settings->integrations<\/strong> \u0432\u043a\u043b\u044e\u0447\u0438\u043b <strong>Jenkins CL<\/strong><\/p>\n<figure class=\"\"><img loading=\"lazy\" decoding=\"async\" src=\"https:\/\/habrastorage.org\/r\/w1560\/getpro\/habr\/upload_files\/f6c\/52e\/509\/f6c52e5099e0de4832c68107287d07a9.png\" width=\"222\" height=\"199\" data-src=\"https:\/\/habrastorage.org\/getpro\/habr\/upload_files\/f6c\/52e\/509\/f6c52e5099e0de4832c68107287d07a9.png\"\/><\/figure>\n<p>\u0415\u0441\u043b\u0438 \u043d\u0435\u0442 <strong>Jenkins CL<\/strong>, \u0442\u043e \u0432\u043e \u0432\u043a\u043b\u0430\u0434\u043a\u0435 <strong>settings->webhooks<\/strong> \u043c\u043e\u0436\u043d\u043e \u043e\u0447\u0435\u043d\u044c \u043f\u043e\u0445\u043e\u0436\u0438\u043c \u043e\u0431\u0440\u0430\u0437\u043e\u043c \u043d\u0430\u0441\u0442\u0440\u043e\u0438\u0442\u044c \u0432\u0441\u0435 \u0442\u043e\u0436\u0435 \u0441\u0430\u043c\u043e\u0435, \u0441 \u043d\u0435\u0431\u043e\u043b\u044c\u0448\u043e\u0439 \u0440\u0430\u0437\u043d\u0438\u0446\u0435\u0439 \u0432 \u0441\u0442\u0435\u043f\u0435\u043d\u0438 \u0438\u043d\u0442\u0435\u0433\u0440\u0430\u0446\u0438\u0438 <strong>Jenkins<\/strong> \u0438 <strong>GitLab<\/strong>. <\/p>\n<p>Jenkins URL: <strong>http:\/\/MY_PC_IP:8080\/<\/strong><\/p>\n<p>Project Name: <strong>TEST_BUILDER<\/strong> (\u0414\u043e\u043b\u0436\u043d\u043e \u0441\u043e\u0432\u043f\u0430\u0434\u0430\u0442\u044c \u0441 \u0438\u043c\u0435\u043d\u0435\u043c \u043f\u043e\u0434\u0433\u043e\u0442\u043e\u0432\u043b\u0435\u043d\u043d\u043e\u0433\u043e \u0437\u0430\u0434\u0430\u043d\u0438\u044f \u043d\u0430 Jenkins)<\/p>\n<p>Username \u0438 \u043f\u0430\u0440\u043e\u043b\u044c \u2013 \u043e\u0442 \u043c\u043e\u0435\u0433\u043e Jenkins (\u043b\u043e\u0433\u0438\u043d: admin \u0438 \u043f\u0430\u0440\u043e\u043b\u044c, \u043a\u043e\u0442\u043e\u0440\u044b\u0439 \u043d\u0430\u0445\u043e\u0434\u0438\u0442\u0441\u044f, \u043f\u0440\u0438\u043c\u0435\u0440\u043d\u043e, \u0442\u0443\u0442 <em>C:\\ProgramData\\Jenkins.jenkins\\secrets\\initialAdminPassword<\/em>)<\/p>\n<figure class=\"full-width\"><img loading=\"lazy\" decoding=\"async\" src=\"https:\/\/habrastorage.org\/r\/w1560\/getpro\/habr\/upload_files\/4dd\/1e4\/1cc\/4dd1e41cc134b40026083a6c01630e9e.png\" width=\"951\" height=\"699\" data-src=\"https:\/\/habrastorage.org\/getpro\/habr\/upload_files\/4dd\/1e4\/1cc\/4dd1e41cc134b40026083a6c01630e9e.png\"\/><\/figure>\n<p>\u041d\u0430 Jenkins \u0441\u043e\u0437\u0434\u0430\u043b Item <strong>Pipeline<\/strong> \u0441 \u043d\u0430\u0441\u0442\u0440\u043e\u0439\u043a\u043e\u0439 <strong>Pipeline Script from SCM<\/strong>.<\/p>\n<p>\u0422\u0435\u043f\u0435\u0440\u044c \u043c\u043e\u0436\u043d\u043e \u0437\u0430\u043f\u0443\u0441\u043a\u0430\u0442\u044c <strong>Jenkinsfile<\/strong> \u0438\u0437 \u043f\u0440\u043e\u0435\u043a\u0442\u0430 \u043d\u0430 git.<\/p>\n<p>\u0412\u043e\u0442 \u0438 \u0432\u0441\u0435. \u041f\u0440\u0438 \u043f\u0443\u0448\u0435 \u0432 \u0440\u0435\u043f\u043e\u0437\u0438\u0442\u043e\u0440\u0438\u0439 <strong>\u0441 \u0442\u0435\u0433\u043e\u043c<\/strong>, \u0431\u0443\u0434\u0435\u0442 \u043f\u0440\u043e\u0432\u0435\u0434\u0435\u043d\u0430 \u0441\u0431\u043e\u0440\u043a\u0430 \u043f\u0440\u043e\u0435\u043a\u0442\u0430 \u0441\u043e\u0433\u043b\u0430\u0441\u043d\u043e \u0441\u043a\u0440\u0438\u043f\u0442\u0443 <strong>Jenkinsfile<\/strong>. \u0410\u0440\u0442\u0435\u0444\u0430\u043a\u0442\u044b \u0441\u0431\u043e\u0440\u043a\u0438 \u043c\u043e\u0436\u043d\u043e \u0431\u0443\u0434\u0435\u0442 \u0437\u0430\u043a\u0438\u043d\u0443\u0442\u044c \u043d\u0430 \u0444\u0430\u0439\u043b\u043e\u0432\u044b\u0439 \u0441\u0435\u0440\u0432\u0435\u0440\/\u0434\u0440\u0443\u0433\u043e\u0439 \u0440\u0435\u043f\u043e\u0437\u0438\u0442\u043e\u0440\u0438\u0439 \u0441 \u043f\u043e\u043c\u043e\u0449\u044c\u044e .bat \u0444\u0430\u0439\u043b\u043e\u0432. <\/p>\n<p>\u0412\u043e\u0442 \u0442\u0430\u043a \u0432\u044b\u0433\u043b\u044f\u0434\u0438\u0442 \u043f\u0430\u0439\u043f\u043b\u0430\u0439\u043d \u0441\u0431\u043e\u0440\u043a\u0438 \u043f\u0440\u043e\u0435\u043a\u0442\u0430:<\/p>\n<figure class=\"full-width\"><img loading=\"lazy\" decoding=\"async\" src=\"https:\/\/habrastorage.org\/r\/w1560\/getpro\/habr\/upload_files\/b7f\/988\/763\/b7f988763c97d9f347ead2478d53221b.png\" width=\"1024\" height=\"433\" data-src=\"https:\/\/habrastorage.org\/getpro\/habr\/upload_files\/b7f\/988\/763\/b7f988763c97d9f347ead2478d53221b.png\"\/><\/figure>\n<p>\u0421\u043f\u0440\u0430\u0432\u0430 \u043d\u0430 \u0433\u0440\u0430\u0444\u0438\u043a\u0435 \u0432\u0438\u0434\u043d\u043e, \u0447\u0442\u043e \u0435\u0441\u0442\u044c \u0437\u0430\u043c\u0435\u0447\u0430\u043d\u0438\u044f \u043e\u0442 cppcheck \u2013 \u0441\u043c\u043e\u0442\u0440\u0438\u043c:<\/p>\n<figure class=\"full-width\"><img loading=\"lazy\" decoding=\"async\" src=\"https:\/\/habrastorage.org\/r\/w1560\/getpro\/habr\/upload_files\/e71\/c71\/3d4\/e71c713d40b787ed3447c620dc423ae8.png\" width=\"1024\" height=\"577\" data-src=\"https:\/\/habrastorage.org\/getpro\/habr\/upload_files\/e71\/c71\/3d4\/e71c713d40b787ed3447c620dc423ae8.png\"\/><\/figure>\n<p>\u041f\u0440\u0435\u0434\u0443\u043f\u0440\u0435\u0436\u0434\u0435\u043d\u0438\u044f \u043a\u043b\u0438\u043a\u0430\u0431\u0435\u043b\u044c\u043d\u044b \u2013 \u043c\u043e\u0436\u043d\u043e \u043f\u043e\u0441\u043c\u043e\u0442\u0440\u0435\u0442\u044c \u043a\u0430\u043a\u043e\u0439 \u0443\u0447\u0430\u0441\u0442\u043e\u043a \u043a\u043e\u0434\u0430 \u0432\u044b\u0437\u0432\u0430\u043b \u043f\u0440\u043e\u0431\u043b\u0435\u043c\u0443 \u043f\u0440\u044f\u043c \u0432 \u0432\u0435\u0431\u0435:<\/p>\n<figure class=\"full-width\"><img loading=\"lazy\" decoding=\"async\" src=\"https:\/\/habrastorage.org\/r\/w1560\/getpro\/habr\/upload_files\/c33\/1ec\/b17\/c331ecb17a13c8bfd4bd5f0027e83d39.png\" width=\"1002\" height=\"85\" data-src=\"https:\/\/habrastorage.org\/getpro\/habr\/upload_files\/c33\/1ec\/b17\/c331ecb17a13c8bfd4bd5f0027e83d39.png\"\/><\/figure>\n<p>\u041d\u0443, \u0438 \u0430\u0440\u0442\u0435\u0444\u0430\u043a\u0442\u044b \u0441\u0431\u043e\u0440\u043a\u0438 \u043f\u0443\u0448\u0430\u0442\u0441\u044f \u043d\u0430 \u0444\u0430\u0439\u043b\u043e\u0432\u044b\u0439 \u0441\u0435\u0440\u0432\u0435\u0440 (Samba, smb-\u043f\u0440\u043e\u0442\u043e\u043a\u043e\u043b) \u0438 \u043d\u0430 git, \u0442.\u043a. \u0432\u0435\u0441\u044f\u0442 \u0434\u043e\u0441\u0442\u0430\u0442\u043e\u0447\u043d\u043e \u043c\u0430\u043b\u043e<\/p>\n<figure class=\"full-width\"><img loading=\"lazy\" decoding=\"async\" src=\"https:\/\/habrastorage.org\/r\/w1560\/getpro\/habr\/upload_files\/4fa\/a8c\/6d8\/4faa8c6d80cec1603881a129a94e92ef.png\" width=\"930\" height=\"489\" data-src=\"https:\/\/habrastorage.org\/getpro\/habr\/upload_files\/4fa\/a8c\/6d8\/4faa8c6d80cec1603881a129a94e92ef.png\"\/><\/figure>\n<h3>\u041d\u0435\u043c\u043d\u043e\u0433\u043e \u043f\u0440\u0438\u043c\u0435\u0440\u043e\u0432 \u0438 \u0431\u0430\u0442\u043d\u0438\u043a\u043e\u0432<\/h3>\n<p><em>\u0414\u0436\u0435\u043d\u043a\u0438\u043d\u0441 \u043f\u043e \u0434\u0435\u0444\u043e\u043b\u0442\u0443 \u0438\u0434\u0435\u0442 \u043a\u0430\u043a \u043b\u043e\u043a\u0430\u043b\u044c\u043d\u0430\u044f \u0441\u043b\u0443\u0436\u0431\u0430 \u2013 \u043d\u0443\u0436\u043d\u043e \u0441\u0434\u0435\u043b\u0430\u0442\u044c \u0435\u0433\u043e \u0430\u0434\u043c\u0438\u043d\u043e\u043c, \u0438\u043d\u0430\u0447\u0435 \u043e\u043d \u043d\u0435 \u0441\u043c\u043e\u0436\u0435\u0442 \u0432\u044b\u043b\u0435\u0437\u0430\u0442\u044c \u0432 \u0441\u0435\u0442\u043a\u0443<\/em><\/p>\n<p>\u0414\u043b\u044f \u0442\u043e\u0433\u043e, \u0447\u0442\u043e\u0431\u044b \u0441\u043e\u0431\u0440\u0430\u0442\u044c \u043f\u0440\u043e\u0435\u043a\u0442 \u0447\u0435\u0440\u0435\u0437 \u043a\u043e\u043d\u0441\u043e\u043b\u044c, \u043d\u0443\u0436\u043d\u043e \u0438\u0441\u043f\u043e\u043b\u044c\u0437\u043e\u0432\u0430\u0442\u044c \u0444\u0438\u0447\u0443, \u043a\u043e\u0442\u043e\u0440\u0430\u044f \u043d\u0430\u0437\u044b\u0432\u0430\u0435\u0442\u0441\u044f <strong>HeadlessBuild<\/strong>. \u0422.\u043a. CubeIDE \u043e\u0441\u043d\u043e\u0432\u0430\u043d\u0430 \u043d\u0430 <strong>Eclipse<\/strong>, \u0442\u043e \u0438 \u043a\u043e\u043c\u0430\u043d\u0434\u044b \u043e\u0447\u0435\u043d\u044c \u043f\u043e\u0445\u043e\u0436\u0438\u0435. \u0421\u0430\u043c\u0430 \u043a\u043e\u043c\u0430\u043d\u0434\u0430 \u0435\u0441\u0442\u044c \u0432 \u043f\u0440\u0438\u043c\u0435\u0440\u0435 \u0444\u0430\u0439\u043b\u0430 <strong>build_stm_prj.bat<\/strong>. \u041a\u0430\u043a \u0438\u043c\u0435\u043d\u043d\u043e \u0437\u0430\u043f\u0443\u0441\u043a\u0430\u0442\u044c stm32cubeide \u0447\u0435\u0440\u0435\u0437 \u0442\u0435\u0440\u043c\u0438\u043d\u0430\u043b \u0438 \u043a\u0430\u043a\u0438\u0435 \u043f\u0430\u0440\u0430\u043c\u0435\u0442\u0440\u044b \u043e\u043d\u0430 \u043f\u0440\u0438\u043d\u0438\u043c\u0430\u0435\u0442 \u2013 \u043c\u043e\u0436\u043d\u043e \u0443\u0437\u043d\u0430\u0442\u044c, \u0432\u044b\u043f\u043e\u043b\u043d\u0438\u0432 \u0442\u0430\u043a\u0443\u044e \u043a\u043e\u043c\u0430\u043d\u0434\u0443:<\/p>\n<pre><code class=\"bash\">\\stm32cubeidec.exe -nosplash  --launcher.suppressErrors -application org.eclipse.cdt.managedbuilder.core.headlessbuild  -help<\/code><\/pre>\n<p>\u041f\u0440\u0438\u043c\u0435\u0440 \u043a\u043e\u043c\u0430\u043d\u0434\u044b \u0441\u0431\u043e\u0440\u043a\u0438 \u043f\u0440\u043e\u0435\u043a\u0442\u0430 \u0434\u043b\u044f <strong>Atmel Studio<\/strong>:<\/p>\n<pre><code class=\"bash\">if exist \"build_log.txt\" del \"build_log.txt\" del \/q AVR_PROJ\\Release\\  \"E:\\Program Files (x86)\\Atmel\\Atmel Studio 6.2\\atmelstudio.exe\" AVR_PROJ.atsln \/rebuild Release \/out build_log.txt type build_log.txt<\/code><\/pre>\n<p>\u041f\u0440\u0438\u043c\u0435\u0440 \u0441\u043e\u0434\u0435\u0440\u0436\u0430\u043d\u0438\u044f <strong>Jenkinsfile<\/strong>. \u0413\u043b\u043e\u0431\u0430\u043b\u044c\u043d\u044b\u0435 \u043f\u0435\u0440\u0435\u043c\u0435\u043d\u043d\u044b\u0435 (${<strong>FILE_SERVER_ADDR<\/strong>} ${<strong>CPP_CHECK<\/strong>} ${<strong>BAT_TOOLS<\/strong>}) \u0437\u0430\u0434\u0430\u044e\u0442\u0441\u044f \u0432 \u043d\u0430\u0441\u0442\u0440\u043e\u0439\u043a\u0430\u0445 \u0441\u0438\u0441\u0442\u0435\u043c\u044b \u0443 Jenkins<\/p>\n<pre><code class=\"json\">def RESULT_FILE_NAME def TAGS_VERSION  pipeline{      agent any      environment{         PROJ_NAME = \"test_prj\"         PROJ_DIR = \"test_prj\"         PROJ_ARTIFACTS_TYPE = \"srec\"         PROJ_SOURCES = \"${PROJ_DIR}\\\\Core\\\\Src\"         PROJ_ARTIFACTS_DIR = \"${PROJ_DIR}\\\\Release\"         PROJ_ARTIFACTS_TYPE = \"srec\"         SERVER_ARTIFACTS_DIR = \"${FILE_SERVER_ADDR}\\\\FW_Folder\"         GITLAB_ARTIFACTS_DIR = \"test_prj1\"         GITLAB_TARGET_NAME = \"test_fw.${PROJ_ARTIFACTS_TYPE}\"     }      stages{         stage('Check CPP'){             steps{                 bat \"${CPP_CHECK} ${PROJ_SOURCES} 2> cppcheck-result.xml\"                 publishCppcheck pattern:'cppcheck-result.xml'             }         }         stage('Unit tests'){             steps{                 updateGitlabCommitStatus name: 'test', state: 'pending'                 dir(\"${PROJ_DIR}\"){                     bat \"${CEEDLING}\"                 }                 updateGitlabCommitStatus name: 'test', state: 'success'             }         }         stage('Building'){             steps{                 updateGitlabCommitStatus name: 'build', state: 'pending'                 bat \"${BAT_TOOLS}\\\\build_stm_prj.bat ${WORKSPACE} ${PROJ_NAME}\"                 updateGitlabCommitStatus name: 'build', state: 'success'             }         }         stage('Publish Artifact'){             steps{                 updateGitlabCommitStatus name: 'Artifact publication', state: 'pending'                 script {                     TAGS_VERSION = getCommandOutput(\"${BAT_TOOLS}\\\\get_tag.bat ${WORKSPACE}\")                     echo \"Tags is ${TAGS_VERSION}\"                 }                 bat \"${BAT_TOOLS}\\\\publish_file_to_gitlab.bat ${WORKSPACE} ${PROJ_ARTIFACTS_DIR} ${PROJ_NAME} ${GITLAB_ARTIFACTS_DIR} ${GITLAB_TARGET_NAME} \\\"${GITLAB_ARTIFACTS_DIR} project updated to version ${TAGS_VERSION}\\\"\"                 bat \"${BAT_TOOLS}\\\\publish_file_to_server.bat ${WORKSPACE} ${PROJ_ARTIFACTS_DIR} ${PROJ_NAME} ${SERVER_ARTIFACTS_DIR}\"                 updateGitlabCommitStatus name: 'Artifact publication', state: 'success'             }         }     }      post{                  success{             echo \"Build succes\"         }         unsuccessful{             updateGitlabCommitStatus name: 'build', state: 'failed'             updateGitlabCommitStatus name: 'Artifact publication', state: 'failed'             echo \"ouhh...\"         }     } }  def getCommandOutput(cmd) {     if (isUnix()){          return sh(returnStdout:true , script: '#!\/bin\/sh -e\\n' + cmd).trim()      } else{        stdout = bat(returnStdout:true , script: cmd).trim()        result = stdout.readLines().drop(1).join(\" \")               return result     }  }<\/code><\/pre>\n<p>\u0421\u043e\u0434\u0435\u0440\u0436\u0430\u043d\u0438\u0435 \u0444\u0430\u0439\u043b\u0430 <strong>get_tag.bat<\/strong>:<\/p>\n<pre><code class=\"bash\">@echo off set work_dir=%1 cd \/d %work_dir% setlocal enableextensions for \/F \"tokens=1-2 delims=.\" %%I in (' git describe --tags ^| grep -Eo \"[0-9]+\\.[0-9]+\"') do (     set tag_main=%%I     set tag_minor=%%J     ) echo %tag_main% %tag_minor%<\/code><\/pre>\n<p>\u0421\u043e\u0434\u0435\u0440\u0436\u0430\u043d\u0438\u0435 \u0444\u0430\u0439\u043b\u0430 <strong>build_stm_prj.bat<\/strong>:<\/p>\n<pre><code class=\"bash\">@echo off set proj_dir=%1 set project=%2  echo %proj_dir% echo %project%  cd \/d \"%proj_dir%\" if exist \"C:\\STM32CubeIDE_headlessBuilds\" rd \/q \/s \"C:\\STM32CubeIDE_headlessBuilds\" C:\\ST\\STM32CubeIDE_1.3.0\\STM32CubeIDE\\stm32cubeidec.exe --launcher.suppressErrors -nosplash -application org.eclipse.cdt.managedbuilder.core.headlessbuild -data \"C:\\STM32CubeIDE_headlessBuilds\" -import %project% -cleanBuild all<\/code><\/pre>\n<p>\u0421\u043e\u0434\u0435\u0440\u0436\u0430\u043d\u0438\u0435 \u0444\u0430\u0439\u043b\u0430 \u0434\u043b\u044f \u043f\u0443\u0431\u043b\u0438\u043a\u0430\u0446\u0438\u0438 \u0430\u0440\u0442\u0435\u0444\u0430\u043a\u0442\u0430 \u043d\u0430 gitlab &#8212; <strong>publish_file_to_gitlab.bat<\/strong>:<\/p>\n<pre><code class=\"powershell\">SetLocal EnableExtensions  set work_dir=%1 set firm_file_dir=%2 set firm_file_name=%3 set project_git_name=%4 set target_firm_file_name=%5 set commit_str=%6  cd \/d %work_dir% cd \/d %firm_file_dir%  ::forced delete folder  rd \/q \/s gitlab_fw_dir 2>nul  ::change the ip to yours git clone git@0.0.0.0:FW\/gitlab_fw_dir.git  ::create project folder if not exist if not exist \"gitlab_fw_dir\\%project_git_name%\\\" mkdir \"gitlab_fw_dir\\%project_git_name%\"   ::delete prev fw if exist if exist \"gitlab_fw_dir\\%project_git_name%\\%target_firm_file_name%\" del \"gitlab_fw_dir\\%project_git_name%\\%target_firm_file_name%\"  xcopy %firm_file_name% gitlab_fw_dir\\%project_git_name%\\%target_firm_file_name%* >NUL  cd \/d gitlab_fw_dir  git add -A git commit -a -m %commit_str% >nul git push >nul  cd \/d .. ::forced delete folder  rd \/q \/s gitlab_dir 2>nul  exit 0<\/code><\/pre>\n<p>\u0421\u043e\u0434\u0435\u0440\u0436\u0430\u043d\u0438\u0435 \u0444\u0430\u0439\u043b\u0430 <strong>publish_file_to_server.bat<\/strong> (\u0434\u043e\u0431\u0430\u0432\u043b\u0435\u043d \u0447\u0435\u043b\u043e\u0432\u0435\u043a\u043e\u0447\u0438\u0442\u0430\u0435\u043c\u044b\u0439 \u0432\u044b\u0432\u043e\u0434 \u043b\u043e\u0433\u0430 git \u043d\u0430 \u0441\u0435\u0440\u0432\u0435\u0440 \u0432 \u0432\u0438\u0434\u0435 \u0444\u0430\u0439\u043b\u0430 Changelog.txt):<\/p>\n<pre><code class=\"powershell\">SetLocal EnableExtensions  set work_dir=%1 set firm_file_dir=%2 set firm_file_name=%3 set project_git_name=%4 set target_firm_file_name=%5 set commit_str=%6  cd \/d %work_dir% cd \/d %firm_file_dir%  ::forced delete folder  rd \/q \/s gitlab_fw_dir 2>nul  git clone git@0.0.0.0:FW\/gitlab_fw_dir.git  ::create project folder if not exist if not exist \"gitlab_fw_dir\\%project_git_name%\\\" mkdir \"gitlab_fw_dir\\%project_git_name%\"   ::delete prev fw if exist if exist \"gitlab_fw_dir\\%project_git_name%\\%target_firm_file_name%\" del \"gitlab_fw_dir\\%project_git_name%\\%target_firm_file_name%\"  xcopy %firm_file_name% gitlab_fw_dir\\%project_git_name%\\%target_firm_file_name%* >NUL  cd \/d gitlab_fw_dir  git add -A git commit -a -m %commit_str% >nul git push >nul  cd \/d .. ::forced delete folder  rd \/q \/s gitlab_dir 2>nul  exit 0<\/code><\/pre>\n<p>\u0412\u0435\u0441\u044c \u0432\u043e\u0440\u043e\u0445 \u0441\u043a\u0440\u0438\u043f\u0442\u043e\u0432 \u0438 \u0441\u0431\u043e\u0440\u043a\u0430 \u0441\u0438\u043b\u044c\u043d\u043e \u0443\u043f\u0440\u043e\u0449\u0430\u0435\u0442\u0441\u044f, \u0435\u0441\u043b\u0438 \u0443 \u0432\u0430\u0441 \u043f\u0440\u043e\u0435\u043a\u0442\u044b \u0441\u0434\u0435\u043b\u0430\u043d\u044b \u043d\u0430 \u0441\u0430\u043c\u043e\u043f\u0438\u0441\u043d\u044b\u0445 Make\/Cmake &#8212; \u0444\u0430\u0439\u043b\u0430\u0445, \u0430 \u0441\u0438\u0441\u0442\u0435\u043c\u0430 \u0441\u0431\u043e\u0440\u043a\u0438 \u0437\u0430\u043f\u0443\u0441\u043a\u0430\u0435\u0442\u0441\u044f \u043d\u0430 Linux-\u0441\u0435\u0440\u0432\u0435\u0440\u0435. \u0422\u043e\u0433\u0434\u0430, \u0443\u043c\u0435\u0441\u0442\u043d\u044b\u043c \u044f\u0432\u043b\u044f\u0435\u0442\u0441\u044f \u0438\u0441\u043f\u043e\u043b\u044c\u0437\u043e\u0432\u0430\u043d\u0438\u0435 Docker-\u043a\u043e\u043d\u0442\u0435\u0439\u043d\u0435\u0440\u043e\u0432 \u0441 \u043d\u0430\u0441\u0442\u0440\u043e\u0435\u043d\u043d\u044b\u043c \u043e\u043a\u0440\u0443\u0436\u0435\u043d\u0438\u0435\u043c \u043f\u043e\u0434 \u043a\u0430\u0436\u0434\u044b\u0439 \u043f\u0440\u043e\u0435\u043a\u0442. \u041b\u043e\u043a\u0430\u043b\u044c\u043d\u0430\u044f \u0440\u0430\u0437\u0440\u0430\u0431\u043e\u0442\u043a\u0430 \u0431\u0443\u0434\u0435\u0442 \u043b\u043e\u0433\u0438\u0447\u043d\u043e \u043f\u0440\u043e\u0434\u043e\u043b\u0436\u0435\u043d\u0430 \u0441\u0431\u043e\u0440\u043a\u043e\u0439, \u0442\u0435\u0441\u0442\u0438\u0440\u043e\u0432\u0430\u043d\u0438\u0435\u043c \u0438 \u043f\u0443\u0431\u043b\u0438\u043a\u0430\u0446\u0438\u0435\u0439 \u0430\u0440\u0442\u0435\u0444\u0430\u043a\u0442\u043e\u0432.<\/p>\n<p>\u041f\u0440\u043e \u044d\u0442\u043e \u043d\u0430 \u041a\u043e\u043d\u0432\u0435\u0435\u0440\u0443\u043c \u0440\u0430\u0441\u0441\u043a\u0430\u0437\u044b\u0432\u0430\u043b \u0414\u043c\u0438\u0442\u0440\u0438\u0439 \u041b\u0438\u0441\u0438\u043d (\u0422\u0440\u0435\u0442\u0438\u0439 \u041f\u0438\u043d):<\/p>\n<div class=\"tm-iframe_temp\" data-src=\"https:\/\/embedd.srv.habr.com\/iframe\/65b760b54c5bea9d8af3ef0e\" data-style=\"\" id=\"65b760b54c5bea9d8af3ef0e\" width=\"\"><\/div>\n<p>\u041d\u0430 \u044d\u0442\u043e\u043c \u0437\u0430\u0432\u0435\u0440\u0448\u0430\u0435\u043c \u043d\u0435\u0431\u043e\u043b\u044c\u0448\u043e\u0435 \u0437\u043d\u0430\u043a\u043e\u043c\u0441\u0442\u0432\u043e \u0441 \u043f\u0440\u043e\u0446\u0435\u0441\u0441\u043e\u043c \u043d\u0435\u043f\u0440\u0435\u0440\u044b\u0432\u043d\u043e\u0439 \u0438\u043d\u0442\u0435\u0433\u0440\u0430\u0446\u0438\u0438 \u043f\u0440\u043e\u0433\u0440\u0430\u043c\u043c\u043d\u043e\u0433\u043e \u043e\u0431\u0435\u0441\u043f\u0435\u0447\u0435\u043d\u0438\u044f \u0434\u043b\u044f \u043c\u0438\u043a\u0440\u043e\u043a\u043e\u043d\u0442\u0440\u043e\u043b\u043b\u0435\u0440\u043e\u0432. \u0423\u0441\u043f\u0435\u0448\u043d\u044b\u0445 \u0440\u0430\u0437\u0440\u0430\u0431\u043e\u0442\u043e\u043a!<\/p>\n<\/p>\n<\/div>\n<\/div>\n<\/div>\n<p><!----><!----><\/div>\n<p><!----><\/p>\n<div class=\"tm-article-poll-container\"><!--[--><\/p>\n<div class=\"tm-article-poll tm-article-poll_variant-bordered\">\n<div class=\"tm-notice tm-notice_positive tm-article-poll__notice\"><!----><\/p>\n<div class=\"tm-notice__inner\"><!----><\/p>\n<div class=\"tm-notice__content\" data-test-id=\"notice-content\"><!--[--><span>\u0422\u043e\u043b\u044c\u043a\u043e \u0437\u0430\u0440\u0435\u0433\u0438\u0441\u0442\u0440\u0438\u0440\u043e\u0432\u0430\u043d\u043d\u044b\u0435 \u043f\u043e\u043b\u044c\u0437\u043e\u0432\u0430\u0442\u0435\u043b\u0438 \u043c\u043e\u0433\u0443\u0442 \u0443\u0447\u0430\u0441\u0442\u0432\u043e\u0432\u0430\u0442\u044c \u0432 \u043e\u043f\u0440\u043e\u0441\u0435. <a rel=\"nofollow\" href=\"\/kek\/v1\/auth\/habrahabr\/?back=\/ru\/articles\/789752\/&#038;hl=ru\">\u0412\u043e\u0439\u0434\u0438\u0442\u0435<\/a>, \u043f\u043e\u0436\u0430\u043b\u0443\u0439\u0441\u0442\u0430.<\/span><!--]--><\/div>\n<\/div>\n<\/div>\n<p><!--[--><\/p>\n<div class=\"tm-article-poll__header\">\u0427\u0442\u043e \u0447\u0430\u0449\u0435 \u0432\u0441\u0435\u0433\u043e \u0432\u044b \u0438\u0441\u043f\u043e\u043b\u044c\u0437\u0443\u0435\u0442\u0435 \u043f\u0440\u0438 \u0440\u0430\u0437\u0440\u0430\u0431\u043e\u0442\u043a\u0435 \u041f\u041e \u043d\u0430 \u043c\u0438\u043a\u0440\u043e\u043a\u043e\u043d\u0442\u0440\u043e\u043b\u043b\u0435\u0440\u044b?<\/div>\n<div class=\"tm-article-poll__answers\"><!--[--><\/p>\n<div class=\"tm-article-poll__answer\">\n<div class=\"tm-article-poll__answer-data\"><span class=\"tm-article-poll__answer-percent\">44% <\/span><span class=\"tm-article-poll__answer-label\">IDE \u043e\u0442 \u043f\u0440\u043e\u0438\u0437\u0432\u043e\u0434\u0438\u0442\u0435\u043b\u044f \u0447\u0438\u043f\u0430<\/span><span class=\"tm-article-poll__answer-votes\">11<\/span><\/div>\n<div class=\"tm-article-poll__answer-bar\">\n<div class=\"tm-article-poll__answer-progress\" style=\"width: 44%\"><\/div>\n<\/div>\n<\/div>\n<div class=\"tm-article-poll__answer\">\n<div class=\"tm-article-poll__answer-data\"><span class=\"tm-article-poll__answer-percent\">32% <\/span><span class=\"tm-article-poll__answer-label\">IDE \u0443\u043d\u0438\u0432\u0435\u0440\u0441\u0430\u043b\u044c\u043d\u043e\u0435 (Keil, Iar)<\/span><span class=\"tm-article-poll__answer-votes\">8<\/span><\/div>\n<div class=\"tm-article-poll__answer-bar\">\n<div class=\"tm-article-poll__answer-progress\" style=\"width: 32%\"><\/div>\n<\/div>\n<\/div>\n<div class=\"tm-article-poll__answer\">\n<div class=\"tm-article-poll__answer-data\"><span class=\"tm-article-poll__answer-percent tm-article-poll__answer-percent_winning\">44% <\/span><span class=\"tm-article-poll__answer-label\">Clang\/LLVM\/GCC + \u0441\u0430\u043c\u043e\u043f\u0438\u0441\u043d\u044b\u0435 Makefile\/Cmake + \u0411\u043b\u043e\u043a\u043d\u043e\u0442\/VSCode<\/span><span class=\"tm-article-poll__answer-votes\">11<\/span><\/div>\n<div class=\"tm-article-poll__answer-bar\">\n<div class=\"tm-article-poll__answer-progress tm-article-poll__answer-progress_winning\" style=\"width: 44%\"><\/div>\n<\/div>\n<\/div>\n<p><!--]--><\/div>\n<div class=\"tm-article-poll__stats\"> \u041f\u0440\u043e\u0433\u043e\u043b\u043e\u0441\u043e\u0432\u0430\u043b\u0438 25 \u043f\u043e\u043b\u044c\u0437\u043e\u0432\u0430\u0442\u0435\u043b\u0435\u0439.   \u0412\u043e\u0437\u0434\u0435\u0440\u0436\u0430\u043b\u0438\u0441\u044c 4 \u043f\u043e\u043b\u044c\u0437\u043e\u0432\u0430\u0442\u0435\u043b\u044f. <\/div>\n<p><!--]--><\/div>\n<p><!--]--><\/div>\n<p> \u0441\u0441\u044b\u043b\u043a\u0430 \u043d\u0430 \u043e\u0440\u0438\u0433\u0438\u043d\u0430\u043b \u0441\u0442\u0430\u0442\u044c\u0438 <a href=\"https:\/\/habr.com\/ru\/articles\/789752\/\"> https:\/\/habr.com\/ru\/articles\/789752\/<\/a><\/p>\n","protected":false},"excerpt":{"rendered":"<div><!--[--><!--]--><\/div>\n<div id=\"post-content-body\">\n<div>\n<div class=\"article-formatted-body article-formatted-body article-formatted-body_version-2\">\n<div xmlns=\"http:\/\/www.w3.org\/1999\/xhtml\">\n<p>\u041f\u0440\u0435\u0436\u0434\u0435 \u0432\u0441\u0435\u0433\u043e \u2013 \u0445\u043e\u0442\u0435\u043b\u043e\u0441\u044c \u0438\u0437\u0431\u0430\u0432\u0438\u0442\u044c \u0441\u0435\u0431\u044f \u043e\u0442 \u0440\u0443\u0442\u0438\u043d\u043d\u044b\u0445 \u043e\u043f\u0435\u0440\u0430\u0446\u0438\u0439, \u043a\u043e\u0442\u043e\u0440\u044b\u0435 \u043d\u0435\u043e\u0431\u0445\u043e\u0434\u0438\u043c\u043e \u043f\u0440\u043e\u043a\u0440\u0443\u0447\u0438\u0432\u0430\u0442\u044c \u0432 \u043a\u0430\u0436\u0434\u044b\u0439 \u0440\u0435\u043b\u0438\u0437 \u0430\u0440\u0442\u0435\u0444\u0430\u043a\u0442\u0430 \u043a\u0430\u0436\u0434\u043e\u0433\u043e \u043f\u0440\u043e\u0435\u043a\u0442\u0430. \u0412\u0442\u043e\u0440\u043e\u0435 \u2013 \u043f\u043e\u043d\u044f\u0442\u044c, \u043d\u0443\u0436\u0435\u043d \u043b\u0438 \u043c\u043d\u0435 \u0432\u043e\u043e\u0431\u0449\u0435 \u0442\u0430\u043a\u043e\u0439 \u043f\u043e\u0434\u0445\u043e\u0434 \u0443 \u0440\u0430\u0437\u0440\u0430\u0431\u043e\u0442\u043a\u0435 \u0438 \u0441\u043a\u043e\u043b\u044c\u043a\u043e \u043e\u0442 \u043d\u0435\u0433\u043e \u043f\u0440\u043e\u0444\u0438\u0442\u0430. \u0422\u0440\u0435\u0442\u044c\u0435 \u2013 \u0443\u0437\u043d\u0430\u0442\u044c \u043d\u0435\u043c\u043d\u043e\u0433\u043e \u043d\u043e\u0432\u043e\u0433\u043e<\/p>\n<p>\u0412\u043e\u0442 \u043d\u0435\u0441\u043a\u043e\u043b\u044c\u043a\u043e \u0441\u0441\u044b\u043b\u043e\u043a, \u0433\u0434\u0435 \u0435\u0441\u0442\u044c \u043d\u0435\u043a\u043e\u0442\u043e\u0440\u0430\u044f \u0438\u043d\u0444\u043e\u0440\u043c\u0430\u0446\u0438\u044f \u043f\u043e \u044d\u0442\u043e\u043c\u0443 \u0432\u043e\u043f\u0440\u043e\u0441\u0443:<\/p>\n<ul>\n<li>\n<p><a href=\"https:\/\/community.st.com\/s\/question\/0D53W00000ITwGRSA1\/how-to-use-headless-build-for-continuous-integration\" rel=\"noopener noreferrer nofollow\"><u>\u0432\u043e\u043f\u0440\u043e\u0441 \u043d\u0430 \u0441\u0430\u0439\u0442\u0435 ST<\/u><\/a>. \u041e\u0431\u0441\u0443\u0436\u0434\u0435\u043d\u0438\u0435 \u0438 \u0438\u043d\u0442\u0435\u0440\u0435\u0441\u043d\u044b\u0435 \u043c\u044b\u0441\u043b\u0438<\/p>\n<\/li>\n<li>\n<p><a href=\"https:\/\/www.youtube.com\/playlist?list=PL4cGeWgaBTe1uwiqIAc6fwPzPpvgPZI2J\" rel=\"noopener noreferrer nofollow\"><u>\u043e\u0442\u043b\u0438\u0447\u043d\u0435\u0439\u0448\u0438\u0439 \u043c\u0430\u0442\u0435\u0440\u0438\u0430\u043b \u0432 \u0432\u0438\u0434\u0435 \u0432\u0438\u0434\u0435\u043e<\/u><\/a> \u043d\u0430 \u0430\u043d\u0433\u043b\u0438\u0439\u0441\u043a\u043e\u043c \u0441 \u043f\u0440\u0438\u043c\u0435\u0440\u043e\u043c \u0443\u0441\u0442\u0430\u043d\u043e\u0432\u043a\u0438 \u0442\u043e\u0433\u043e \u0436\u0435 \u0441\u0430\u043c\u043e\u0433\u043e \u043d\u0430 \u043b\u043e\u043a\u0430\u043b\u044c\u043d\u043e\u0439 \u043c\u0430\u0448\u0438\u043d\u0435 \u0434\u043b\u044f \u043e\u0434\u043d\u043e\u0433\u043e \u0440\u0430\u0437\u0440\u0430\u0431\u043e\u0442\u0447\u0438\u043a\u0430.<\/p>\n<\/li>\n<li>\n<p><a href=\"https:\/\/embeddedartistry.com\/blog\/2018\/10\/18\/embedded-systems-testing-resources\" rel=\"noopener noreferrer nofollow\"><u>\u0431\u043e\u043b\u044c\u0448\u0435 \u0440\u0430\u0441\u0441\u043a\u0430\u0437\u044b\u0432\u0430\u044e\u0442 \u043f\u0440\u043e TDD, \u043d\u043e \u0435\u0441\u0442\u044c \u043e\u0442\u0434\u0435\u043b\u044c\u043d\u044b\u0435 \u0441\u0442\u0430\u0442\u044c\u0438 \u043f\u0440\u043e CI\/CD<\/u><\/a><\/p>\n<\/li>\n<\/ul>\n<blockquote>\n<p>\u041d\u0435 \u0437\u0430\u0431\u044b\u0432\u0430\u0435\u043c, \u0447\u0442\u043e \u043c\u043d\u0435 <strong>\u0441\u043e\u0432\u0435\u0440\u0448\u0435\u043d\u043d\u043e \u043d\u0435\u0438\u0437\u0432\u0435\u0441\u0442\u043d\u043e<\/strong> \u043a\u0430\u043a \u0434\u0435\u043b\u0430\u0442\u044c \u043f\u0440\u0430\u0432\u0438\u043b\u044c\u043d\u043e. \u0423\u043d\u0438\u0432\u0435\u0440\u0441\u0430\u043b\u044c\u043d\u043e\u0433\u043e \u0440\u0435\u0446\u0435\u043f\u0442\u0430 \u043d\u0435 \u043d\u0430\u0448\u043b\u043e\u0441\u044c, \u043f\u043e\u044d\u0442\u043e\u043c\u0443 \u0441\u043e\u0431\u0438\u0440\u0430\u044e \u0441\u0432\u043e\u0435\u0433\u043e \u041a\u0440\u0430\u043a\u0435\u043d\u0430 \u043d\u0430 win-\u0441\u0435\u0440\u0432\u0435\u0440\u0435(local).<\/p>\n<\/blockquote>\n<p>\u041f\u0440\u0435\u0436\u0434\u0435 \u0432\u0441\u0435\u0433\u043e, \u044f \u043e\u0442\u043a\u0430\u0437\u0430\u043b\u0441\u044f \u043e\u0442 \u0441\u043b\u043e\u044f \u0430\u0431\u0441\u0442\u0440\u0430\u043a\u0446\u0438\u0438 \u0441\u0432\u044f\u0437\u0430\u043d\u043d\u043e\u0439 \u0441 \u043a\u043e\u043d\u0442\u0435\u0439\u043d\u0435\u0440\u0438\u0437\u0430\u0446\u0438\u0435\u0439. \u041f\u0440\u043e\u0448\u0443 \u043f\u0440\u043e\u0449\u0435\u043d\u0438\u044f, \u043b\u044e\u0431\u0438\u0442\u0435\u043b\u0438 Docker, \u043c\u043d\u0435 \u043e\u043d \u043f\u043e\u043a\u0430 \u043d\u0435 \u0437\u0430\u0448\u0435\u043b. \u041e\u0442\u043b\u0438\u0447\u043d\u0430\u044f \u0438\u0434\u0435\u044f \u0438\u0441\u043f\u043e\u043b\u044c\u0437\u043e\u0432\u0430\u0442\u044c \u043a\u043e\u043d\u0442\u0435\u0439\u043d\u0435\u0440\u044b, \u043d\u043e \u0434\u0443\u0445\u043e\u0442\u044b \u043f\u0440\u0435\u0434\u0432\u0438\u0436\u0443 \u0438 \u0442\u0430\u043a \u0441 \u0433\u043e\u043b\u043e\u0432\u043e\u0439 \u2013 \u043b\u0443\u0447\u0448\u0435 \u043d\u0435 \u0443\u0441\u043b\u043e\u0436\u043d\u044f\u0442\u044c \u201c\u0430\u0440\u0445\u0438\u0442\u0435\u043a\u0442\u0443\u0440\u0443\u201d \u0435\u0449\u0435 \u043e\u0434\u043d\u0438\u043c \u0441\u043b\u043e\u0435\u043c. \u041e\u0441\u0442\u0430\u0432\u0438\u043c \u043d\u0430 \u043b\u0443\u0447\u0448\u0435\u0435 \u0432\u0440\u0435\u043c\u044f. \u0422\u0440\u0435\u0437\u0432\u043e \u043e\u0446\u0435\u043d\u0438\u0432 \u0432\u043e\u0437\u043c\u043e\u0436\u043d\u043e\u0441\u0442\u0438 \u0441\u0432\u043e\u0438\u0445 \u043f\u043e\u0437\u043d\u0430\u043d\u0438\u0439 \u044f \u043f\u043e\u043d\u044f\u043b, \u0447\u0442\u043e \u0441\u043b\u043e\u0438 \u0438\u0437 Groovy pipeline-\u0441\u043a\u0440\u0438\u043f\u0442\u043e\u0432, batch-\u0441\u043a\u0440\u0438\u043f\u0442\u043e\u0432 \u043f\u0440\u0435\u0434\u043e\u0441\u0442\u0430\u0432\u043b\u044f\u044e\u0442 \u0443\u0436\u0435 \u043d\u0435\u043c\u0430\u043b\u0435\u043d\u044c\u043a\u0438\u0439 \u043a\u043e\u043d\u0432\u0435\u0439\u0435\u0440\u043d\u044b\u0439 \u0430\u0434.<\/p>\n<p>\u041a\u043b\u0430\u0441\u0441\u0438\u0447\u0435\u0441\u043a\u0430\u044f \u0440\u0430\u0437\u0440\u0430\u0431\u043e\u0442\u043a\u0430 \u043f\u043e\u0434 MCU:<\/p>\n<ol>\n<li>\n<p>\u0421\u0438\u043d\u0445\u0440\u043e\u043d\u0438\u0437\u0430\u0446\u0438\u044f \u0441 GitLab(GitHub, SVN\u2026)<\/p>\n<\/li>\n<li>\n<p>\u0412\u043d\u0435\u0441\u0435\u043d\u0438\u0435 \u0438\u0437\u043c\u0435\u043d\u0435\u043d\u0438\u0439 \u0432 \u043f\u0440\u043e\u0448\u0438\u0432\u043a\u0443<\/p>\n<\/li>\n<li>\n<p>\u0421\u0431\u043e\u0440\u043a\u0430 \u043f\u0440\u043e\u0448\u0438\u0432\u043a\u0438 (\u043d\u0435\u043e\u0431\u0445\u043e\u0434\u0438\u043c\u043e \u043f\u043e\u0434\u0433\u043e\u0442\u043e\u0432\u043b\u0435\u043d\u043d\u043e\u0435 \u0440\u0430\u0431\u043e\u0447\u0435\u0435 \u043e\u043a\u0440\u0443\u0436\u0435\u043d\u0438\u0435)<\/p>\n<\/li>\n<li>\n<p>\u041f\u043e\u0434\u0433\u043e\u0442\u043e\u0432\u043a\u0430 \u0430\u0440\u0442\u0435\u0444\u0430\u043a\u0442\u043e\u0432 \u0441\u0431\u043e\u0440\u043a\u0438 \u043a \u043f\u0443\u0431\u043b\u0438\u043a\u0430\u0446\u0438\u0438<\/p>\n<\/li>\n<li>\n<p>\u041f\u0443\u0431\u043b\u0438\u043a\u0430\u0446\u0438\u044f \u043f\u0440\u043e\u0448\u0438\u0432\u043e\u043a \u043d\u0430 \u0441\u0435\u0440\u0432\u0435\u0440\u0435<\/p>\n<\/li>\n<li>\n<p>\u0420\u0443\u0447\u043d\u043e\u0435 \u0434\u043e\u0431\u0430\u0432\u043b\u0435\u043d\u0438\u0435 \u043f\u0440\u043e\u0448\u0438\u0432\u043e\u043a \u043d\u0430 \u043d\u043e\u0432\u044b\u0445 \u0440\u0435\u043b\u0438\u0437\u0430\u0445 \u043f\u0440\u0438 \u043f\u043e\u0441\u0442\u0430\u0432\u043a\u0435 \u0438\u0445 \u0432 \u0441\u043e\u0441\u0442\u0430\u0432\u0435 \u043a\u043e\u043c\u043f\u043b\u0435\u043a\u0441\u0430 \u041f\u041e<\/p>\n<\/li>\n<\/ol>\n<figure class=\"full-width\"><\/figure>\n<p>\u041a\u0430\u043a \u044f \u044d\u0442\u043e \u0432\u0438\u0436\u0443 \u0441 CI\/CD: <\/p>\n<ol>\n<li>\n<p>\u0421\u0438\u043d\u0445\u0440\u043e\u043d\u0438\u0437\u0430\u0446\u0438\u044f \u0441 Git<\/p>\n<\/li>\n<li>\n<p>\u0412\u043d\u0435\u0441\u0435\u043d\u0438\u0435 \u0438\u0437\u043c\u0435\u043d\u0435\u043d\u0438\u0439 \u0432 \u043f\u0440\u043e\u0448\u0438\u0432\u043a\u0443<\/p>\n<\/li>\n<li>\n<p>\u0414\u043e\u0431\u0430\u0432\u043b\u0435\u043d\u0438\u0435 \u0442\u0435\u0433\u0430 \u0442\u0435\u043a\u0443\u0449\u0435\u0439 \u0432\u0435\u0440\u0441\u0438\u0438<\/p>\n<\/li>\n<li>\n<p>\u041f\u0443\u0448 \u0432 Git<\/p>\n<\/li>\n<\/ol>\n<p>\u0410\u0432\u0442\u043e\u043c\u0430\u0442\u0438\u0437\u0438\u0440\u043e\u0432\u0430\u043d\u043d\u0430\u044f \u0441\u0431\u043e\u0440\u043a\u0430 \u0438 \u043f\u0443\u0431\u043b\u0438\u043a\u0430\u0446\u0438\u044f:<\/p>\n<figure class=\"full-width\"><\/figure>\n<p>\u0412\u0438\u0436\u0443 \u0442\u0443\u0442 \u043d\u0435\u043a\u043e\u0442\u043e\u0440\u044b\u0435 \u043f\u043b\u044e\u0441\u044b:<\/p>\n<ul>\n<li>\n<p>\u0410\u0432\u0442\u043e\u043c\u0430\u0442\u0438\u0437\u0430\u0446\u0438\u044f \u0437\u0430\u0434\u0430\u0447:<\/p>\n<ul>\n<li>\n<p>\u0421\u0431\u043e\u0440\u043a\u0430 \u043f\u0440\u043e\u0448\u0438\u0432\u043e\u043a<\/p>\n<\/li>\n<li>\n<p>\u041f\u0440\u043e\u0433\u043e\u043d \u0442\u0435\u0441\u0442\u043e\u0432<\/p>\n<\/li>\n<li>\n<p>\u041f\u043e\u0434\u0433\u043e\u0442\u043e\u0432\u043a\u0430 \u043f\u0440\u043e\u0448\u0438\u0432\u043e\u043a \u043a \u043f\u0443\u0431\u043b\u0438\u043a\u0430\u0446\u0438\u0438 (\u043f\u043e\u0434\u043f\u0438\u0441\u044c, \u043f\u0440\u0430\u0432\u043a\u0430, \u0438\u0437\u043c\u0435\u043d\u0435\u043d\u0438\u0435 \u0438\u043c\u0435\u043d\u0438)<\/p>\n<\/li>\n<li>\n<p>\u041f\u0443\u0431\u043b\u0438\u043a\u0430\u0446\u0438\u044f \u043d\u0430 \u0441\u0435\u0440\u0432\u0435\u0440<\/p>\n<\/li>\n<\/ul>\n<\/li>\n<li>\n<p>\u0418\u0441\u043f\u043e\u043b\u044c\u0437\u043e\u0432\u0430\u043d\u0438\u0435 \u0435\u0434\u0438\u043d\u043e\u0433\u043e \u043d\u0430\u0431\u043e\u0440\u0430 \u0438\u043d\u0441\u0442\u0440\u0443\u043c\u0435\u043d\u0442\u043e\u0432 \u0434\u043b\u044f \u0441\u0431\u043e\u0440\u043a\u0438<\/p>\n<\/li>\n<li>\n<p>\u0421\u043d\u0438\u0436\u0435\u043d\u0438\u0435 \u0441\u043b\u043e\u0436\u043d\u043e\u0441\u0442\u0438 \u0432\u0445\u043e\u0434\u0430 \u0434\u043b\u044f \u043d\u043e\u0432\u044b\u0445 \u0441\u043e\u0442\u0440\u0443\u0434\u043d\u0438\u043a\u043e\u0432 (\u0441\u043f\u043e\u0440\u043d\u043e, \u043d\u043e \u0432\u0441\u0435 \u0436\u0435 \u0432 \u043f\u0435\u0440\u0441\u043f\u0435\u043a\u0442\u0438\u0432\u0435)<\/p>\n<\/li>\n<li>\n<p>\u0412\u043e\u0437\u043c\u043e\u0436\u043d\u043e\u0441\u0442\u044c \u0431\u044b\u0441\u0442\u0440\u043e \u043f\u043e\u043b\u0443\u0447\u0438\u0442\u044c \u043d\u043e\u0432\u0443\u044e \u0432\u0435\u0440\u0441\u0438\u044e \u043f\u0440\u043e\u0448\u0438\u0432\u043a\u0438 \u0431\u0435\u0437 \u043d\u0435\u043e\u0431\u0445\u043e\u0434\u0438\u043c\u043e\u0441\u0442\u0438 \u043d\u0430\u0441\u0442\u0440\u0430\u0438\u0432\u0430\u0442\u044c \u0440\u0430\u0431\u043e\u0447\u0435\u0435 \u043e\u043a\u0440\u0443\u0436\u0435\u043d\u0438\u0435 (\u0442\u043e\u0436\u0435 \u0441\u043f\u043e\u0440\u043d\u043e, \u043d\u043e \u0438\u043d\u043e\u0433\u0434\u0430 \u043e\u0447\u0435\u043d\u044c \u0431\u044b\u0432\u0430\u0435\u0442 \u043d\u0443\u0436\u043d\u043e \u0434\u043b\u044f \u0445\u043e\u0442\u0444\u0438\u043a\u0441\u0430)<\/p>\n<\/li>\n<\/ul>\n<p>\u0414\u0430, \u044f \u0432\u043f\u043e\u043b\u043d\u0435 \u043f\u043e\u043d\u0438\u043c\u0430\u044e, \u0447\u0442\u043e \u043f\u043e\u0434\u043e\u0431\u043d\u0430\u044f \u0441\u0438\u0441\u0442\u0435\u043c\u0430 \u0434\u0430\u0441\u0442 \u043d\u0430\u0438\u0431\u043e\u043b\u044c\u0448\u0443\u044e \u043e\u0442\u0434\u0430\u0447\u0443 \u043f\u0440\u0438 \u0438\u0441\u043f\u043e\u043b\u044c\u0437\u043e\u0432\u0430\u043d\u0438\u0438 Make\/CMake \u0438 \u043a\u043e\u043d\u0442\u0435\u0439\u043d\u0435\u0440\u043e\u0432 (\u0434\u043b\u044f \u0438\u0437\u043e\u043b\u0438\u0440\u043e\u0432\u0430\u043d\u0438\u044f \u0441\u0440\u0435\u0434\u044b \u0438 \u0440\u0430\u0431\u043e\u0442\u044b \u0441 \u0443\u0436\u0435 \u043f\u043e\u0434\u0433\u043e\u0442\u043e\u0432\u043b\u0435\u043d\u043d\u044b\u043c\u0438 \u0441\u0440\u0435\u0434\u0430\u043c\u0438). \u041d\u043e \u0438\u043c\u0435\u0435\u043c, \u0447\u0442\u043e \u0438\u043c\u0435\u0435\u043c \u2013 \u043f\u0435\u0440\u0435\u043f\u0438\u0441\u044b\u0432\u0430\u0442\u044c \u0432\u0435\u0441\u044c \u0432\u043e\u0440\u043e\u0445 \u043f\u0440\u043e\u0435\u043a\u0442\u043e\u0432 \u0440\u0430\u0434\u0438 \u0441\u0432\u043e\u0435\u0433\u043e \u0438\u043d\u0442\u0435\u0440\u0435\u0441\u0430 <em>\u0432 \u043d\u0435\u0440\u0430\u0431\u043e\u0447\u0435\u0435 \u0432\u0440\u0435\u043c\u044f<\/em>, \u044d\u0442\u043e \u0432\u044b\u0448\u0435 \u043c\u043e\u0438\u0445 \u0441\u0438\u043b.<\/p>\n<p>\u0414\u0430\u043b\u044c\u043d\u0435\u0439\u0448\u0435\u0435 \u043e\u043f\u0438\u0441\u0430\u043d\u0438\u0435 \u0431\u0443\u0434\u0435\u0442 \u0434\u043b\u044f \u0441\u0438\u0441\u0442\u0435\u043c\u044b \u043a\u043e\u043d\u0442\u0440\u043e\u043b\u044f \u0432\u0435\u0440\u0441\u0438\u0439 <strong>GitLab<\/strong>. <\/p>\n<p>\u0423 \u043d\u0438\u0445 \u0435\u0441\u0442\u044c \u043e\u0442\u043b\u0438\u0447\u043d\u0430\u044f \u0434\u043e\u043a\u0443\u043c\u0435\u043d\u0442\u0430\u0446\u0438\u044f \u043f\u043e \u0438\u043d\u0442\u0435\u0433\u0440\u0430\u0446\u0438\u0438 <strong>GitLab<\/strong> \u0441 <strong>Jenkins<\/strong> (<a href=\"https:\/\/docs.gitlab.com\/ee\/integration\/jenkins.html\" rel=\"noopener noreferrer nofollow\">https:\/\/docs.gitlab.com\/ee\/integration\/jenkins.html<\/a>), \u043b\u0443\u0447\u0448\u0435 \u0434\u0435\u043b\u0430\u0442\u044c \u043f\u043e \u043d\u0435\u0439, \u0430 \u0441\u044e\u0434\u0430 \u043b\u0438\u0448\u044c \u043f\u043e\u0441\u043c\u0430\u0442\u0440\u0438\u0432\u0430\u0442\u044c \u2013 \u0432\u0434\u0440\u0443\u0433 \u0447\u0435\u0433\u043e \u0431\u0443\u0434\u0435\u0442 \u0438\u043d\u0442\u0435\u0440\u0435\u0441\u043d\u043e\u0433\u043e<\/p>\n<h3>\u041f\u0440\u043e Jenkins<\/h3>\n<p>\u0421\u0443\u0442\u044c \u0435\u0433\u043e \u2013 \u043b\u0438\u0448\u044c \u0441\u043a\u0440\u0438\u043f\u0442-\u0440\u0430\u043d\u043d\u0435\u0440 \u0438 \u043c\u0435\u0441\u0442\u043e \u0445\u0440\u0430\u043d\u0435\u043d\u0438\u044f<br \/>\u0414\u0436\u0435\u043d\u043a\u0438\u043d\u0441 \u043c\u043e\u0436\u0435\u0442 \u043f\u043e\u0434\u0445\u0432\u0430\u0442\u044b\u0432\u0430\u0442\u044c \u0432\u0435\u0431-\u0445\u0443\u043a\u0438 \u0441 \u0433\u0438\u0442\u043b\u0430\u0431\u0430 \u0438 \u0441\u0430\u043c \u043d\u0430\u0447\u0438\u043d\u0430\u0442\u044c \u0432\u044b\u043f\u043e\u043b\u043d\u044f\u0442\u044c \u0441\u043a\u0440\u0438\u043f\u0442\u044b<br \/>\u041b\u0443\u0447\u0448\u0435 \u0432\u0441\u0435\u0433\u043e, \u043e\u043f\u044f\u0442\u044c \u0436\u0435, <a href=\"https:\/\/www.jenkins.io\/doc\/book\/using\/\" rel=\"noopener noreferrer nofollow\"><u>\u043f\u043e\u0447\u0438\u0442\u0430\u0442\u044c \u0434\u043e\u043a\u0443\u043c\u0435\u043d\u0442\u0430\u0446\u0438\u044e<\/u><\/a> \u2013 \u0437\u0434\u0435\u0441\u044c \u0431\u0443\u0434\u0435\u0442 \u043b\u0438\u0448\u044c \u043e\u0447\u0435\u043d\u044c \u043f\u043e\u0432\u0435\u0440\u0445\u043d\u043e\u0441\u0442\u043d\u0430\u044f \u0438\u043d\u0444\u043e\u0440\u043c\u0430\u0446\u0438\u044f<\/p>\n<p>\u0412 Jenkins \u043f\u0440\u043e\u043f\u0438\u0441\u044b\u0432\u0430\u0435\u0442\u0441\u044f: <\/p>\n<ul>\n<li>\n<p>git \u0441\u0441\u044b\u043b\u043a\u0430 \u0434\u043e \u043f\u0440\u043e\u0435\u043a\u0442\u0430 \u0441 \u043a\u043e\u0434\u043e\u043c \u0438\/\u0438\u043b\u0438 \u043e\u043f\u0440\u0435\u0434\u0435\u043b\u0435\u043d\u043d\u043e\u0439 \u0432\u0435\u0442\u043a\u043e\u0439<\/p>\n<\/li>\n<li>\n<p>\u041e\u0442\u043a\u0443\u0434\u0430 \u0431\u0440\u0430\u0442\u044c \u0444\u0430\u0439\u043b \u0441\u043e \u0441\u043a\u0440\u0438\u043f\u0442\u043e\u043c \u043a\u043e\u043d\u0444\u0438\u0433\u0443\u0440\u0430\u0446\u0438\u0438 \u0434\u0436\u0435\u043d\u043a\u0438\u043d\u0441\u0430. \u0412 \u044d\u0442\u043e\u043c \u0441\u043a\u0440\u0438\u043f\u0442\u0435 \u043f\u0440\u043e\u043f\u0438\u0441\u044b\u0432\u0430\u044e\u0442\u0441\u044f \u0448\u0430\u0433\u0438 \u0438 \u043a\u0430\u043a\u0438\u0435 \u0431\u0430\u0442\u043d\u0438\u043a\u0438 \u0432\u044b\u043f\u043e\u043b\u043d\u0438\u0442\u044c \u2013 \u0434\u043e\u0441\u0442\u0430\u0442\u043e\u0447\u043d\u043e \u043f\u0440\u043e\u0441\u0442\u043e. <\/p>\n<\/li>\n<\/ul>\n<p>\u0422\u043e \u0435\u0441\u0442\u044c, \u043f\u0440\u0430\u043a\u0442\u0438\u0447\u0435\u0441\u043a\u0438 \u0432\u0441\u044f \u0440\u0430\u0431\u043e\u0442\u0430 \u0443 Jenkins \u0431\u0443\u0434\u0435\u0442 \u0441\u0442\u044f\u043d\u0443\u0442\u044c \u0441\u0431\u043e\u0440\u043a\u0443, \u0441\u043e\u0431\u0440\u0430\u0442\u044c \u0438 \u0437\u0430\u043f\u0443\u0441\u0442\u0438\u0442\u044c \u043f\u0430\u0440\u0443 \u0431\u0430\u0442\u043d\u0438\u043a\u043e\u0432. <\/p>\n<p>\u0415\u0441\u0442\u044c \u0434\u0432\u0430 \u043e\u0441\u043d\u043e\u0432\u043d\u044b\u0445 \u0432\u0430\u0440\u0438\u0430\u043d\u0442\u0430 \u0438\u0441\u043f\u043e\u043b\u044c\u0437\u043e\u0432\u0430\u043d\u0438\u044f Jenkins. \u0421\u043e \u0441\u0432\u043e\u0431\u043e\u0434\u043d\u043e\u0439 \u043a\u043e\u043d\u0444\u0438\u0433\u0443\u0440\u0430\u0446\u0438\u0435\u0439 \u0438 Pipeline<\/p>\n<p>\u0412 \u043f\u0435\u0440\u0432\u0443\u044e \u043e\u0447\u0435\u0440\u0435\u0434\u044c, \u043d\u0430\u0436\u0438\u043c\u0430\u0435\u043c \u0441\u043e\u0437\u0434\u0430\u0442\u044c Item (Item \u2013 \u044d\u0442\u043e <strong>\u043e\u0434\u0438\u043d \u043f\u0440\u043e\u0435\u043a\u0442<\/strong> \u0434\u043b\u044f \u0441\u0431\u043e\u0440\u043a\u0438)<\/p>\n<figure class=\"\"><\/figure>\n<p>\u0422\u0443\u0442 \u043d\u0443\u0436\u043d\u043e \u0432\u043f\u0438\u0441\u0430\u0442\u044c \u043d\u0430\u0437\u0432\u0430\u043d\u0438\u0435 \u0437\u0430\u0434\u0430\u0447\u0438 \u0438 \u0432\u044b\u0431\u0440\u0430\u0442\u044c \u0442\u0438\u043f<\/p>\n<figure class=\"full-width\"><\/figure>\n<p>\u0414\u0430\u043b\u0435\u0435 \u043d\u0443\u0436\u043d\u043e \u0432\u043f\u0438\u0441\u0430\u0442\u044c \u0441\u0441\u044b\u043b\u043a\u0443 \u043d\u0430 \u043f\u0440\u043e\u0435\u043a\u0442 \u0438 \u0434\u0430\u043d\u043d\u044b\u0435 \u0430\u0432\u0442\u043e\u0440\u0438\u0437\u0430\u0446\u0438\u0438<\/p>\n<figure class=\"full-width\"><\/figure>\n<p>\u0422\u0440\u0438\u0433\u0433\u0435\u0440\u044b \u0441\u0431\u043e\u0440\u043a\u0438 \u043e\u043f\u0440\u0435\u0434\u0435\u043b\u044f\u044e\u0442 \u043f\u043e \u043a\u0430\u043a\u043e\u043c\u0443 \u0438\u0437 \u0441\u043e\u0431\u044b\u0442\u0438\u0439 \u0431\u0443\u0434\u0435\u0442 \u0432\u044b\u043f\u043e\u043b\u043d\u0435\u043d\u0430 \u0437\u0430\u0434\u0430\u0447\u0430<\/p>\n<figure class=\"\"><\/figure>\n<p><strong>\u0421\u0432\u043e\u0431\u043e\u0434\u043d\u0430\u044f \u043a\u043e\u043d\u0444\u0438\u0433\u0443\u0440\u0430\u0446\u0438\u044f<\/strong> \u043f\u043e\u0437\u0432\u043e\u043b\u044f\u0435\u0442 \u043d\u0430\u0441\u0442\u0440\u043e\u0438\u0442\u044c \u0432\u0441\u0435 \u0448\u0430\u0433\u0438 \u0441\u0431\u043e\u0440\u043a\u0438 \u0447\u0435\u0440\u0435\u0437 \u0432\u0435\u0431-GUI. \u0412\u043e\u0442 \u043f\u0440\u0438\u043c\u0435\u0440<\/p>\n<figure class=\"full-width\"><\/figure>\n<p><strong>Pipeline<\/strong> \u2013 \u0431\u043e\u043b\u0435\u0435 \u0433\u0438\u0431\u043a\u0430\u044f \u0432 \u043d\u0430\u0441\u0442\u0440\u043e\u0439\u043a\u0435 \u0441\u0438\u0441\u0442\u0435\u043c\u0430, \u043a\u043e\u0442\u043e\u0440\u0430\u044f \u043f\u043e\u0437\u0432\u043e\u043b\u044f\u0435\u0442 \u0438\u0441\u043f\u043e\u043b\u043d\u044f\u0442\u044c \u0441\u043a\u0440\u0438\u043f\u0442 \u0441\u0431\u043e\u0440\u043a\u0438 \u043f\u0440\u0438 \u043d\u0430\u0441\u0442\u0443\u043f\u043b\u0435\u043d\u0438\u0438 \u0441\u043e\u0431\u044b\u0442\u0438\u044f-\u0442\u0440\u0438\u0433\u0433\u0435\u0440\u0430. \u0428\u0430\u0433\u0438 \u0441\u0431\u043e\u0440\u043a\u0438 \u043e\u043f\u0440\u0435\u0434\u0435\u043b\u044f\u0435\u0442 \u0441\u043a\u0440\u0438\u043f\u0442 \u043d\u0430 \u044f\u0437\u044b\u043a\u0435 <strong>Groovy<\/strong>. \u0422\u0440\u0438\u0433\u0433\u0435\u0440\u044b \u0441\u0431\u043e\u0440\u043a\u0438 \u0438 git-\u0430\u0432\u0442\u043e\u0440\u0438\u0437\u0430\u0446\u0438\u044f \u043e\u0441\u0442\u0430\u044e\u0442\u0441\u044f \u0442\u0435\u043c\u0438 \u0436\u0435 \u0434\u043b\u044f \u043e\u0431\u0435\u0438\u0445 \u0441\u0438\u0441\u0442\u0435\u043c.<\/p>\n<figure class=\"full-width\"><\/figure>\n<p><strong>Pipeline<\/strong> <strong>Script<\/strong> \u043f\u043e\u0437\u0432\u043e\u043b\u044f\u0435\u0442 \u0437\u0430\u043f\u0438\u0441\u0430\u0442\u044c \u0441\u043a\u0440\u0438\u043f\u0442 \u0432 \u043e\u043a\u043d\u0435 \u0432 \u0432\u0435\u0431-GUI. <strong>Pipeline<\/strong> <strong>Script from SCM<\/strong> \u2013 \u0441\u043a\u0430\u0447\u0438\u0432\u0430\u0435\u0442 \u0438 \u0438\u0441\u043f\u043e\u043b\u043d\u044f\u0435\u0442 Groovy-\u0441\u043a\u0440\u0438\u043f\u0442(<strong>Jenkinsfile<\/strong>) \u043d\u0430\u043f\u0440\u044f\u043c\u0443\u044e \u0438\u0437 \u0440\u0435\u043f\u043e\u0437\u0438\u0442\u043e\u0440\u0438\u044f \u0441 \u043f\u0440\u043e\u0435\u043a\u0442\u043e\u043c. <\/p>\n<figure class=\"full-width\"><\/figure>\n<p>\u041e\u0431\u0440\u0430\u0442\u0438\u0442\u0435 \u0432\u043d\u0438\u043c\u0430\u043d\u0438\u0435, \u0447\u0442\u043e \u0438\u043c\u044f \u0444\u0430\u0439\u043b\u0430-\u0441\u043a\u0440\u0438\u043f\u0442\u0430 \u0434\u043e\u043b\u0436\u043d\u043e \u0431\u044b\u0442\u044c \u0443\u043a\u0430\u0437\u0430\u043d\u043e \u0432 <strong>Script Path<\/strong><\/p>\n<h3>\u0428\u0430\u0433\u0438 \u0434\u043b\u044f \u043d\u0430\u0441\u0442\u0440\u043e\u0439\u043a\u0438 \u0441\u0432\u043e\u0435\u0433\u043e \u043f\u0440\u043e\u0435\u043a\u0442\u0430<\/h3>\n<p>\u0421\u043a\u0430\u0447\u0430\u043b Jenkins \u0441 \u043e\u0444\u0438\u0446\u0438\u0430\u043b\u044c\u043d\u043e\u0433\u043e \u0441\u0430\u0439\u0442\u0430. \u0417\u0430\u043f\u0443\u0441\u0442\u0438\u043b, \u0443\u0441\u0442\u0430\u043d\u043e\u0432\u0438\u043b, \u043d\u0438\u0447\u0435\u0433\u043e \u0441\u043b\u043e\u0436\u043d\u043e\u0433\u043e. \u0423\u0441\u0442\u0430\u043d\u043e\u0432\u0438\u043b <strong>GitLab, Pipeline: Stage View, Pipeline, Folders, Credentials, CppCheck<\/strong> \u0438 \u0435\u0449\u0435 \u043f\u0430\u0440\u0443 \u043f\u043b\u0430\u0433\u0438\u043d\u043e\u0432 &#8212; \u0442\u0443\u0442 \u0443\u0436 \u043d\u0430 \u0432\u0430\u0448 \u0432\u043a\u0443\u0441. \u041f\u0435\u0440\u0435\u0437\u0430\u043f\u0443\u0441\u0442\u0438\u043b Jenkins.<\/p>\n<p>\u0415\u0449\u0435 \u0432 Jenkins \u043f\u0440\u043e\u043f\u0438\u0441\u0430\u043b \u0433\u043b\u043e\u0431\u0430\u043b\u044c\u043d\u044b\u0435 \u043f\u0435\u0440\u0435\u043c\u0435\u043d\u043d\u044b\u0435 \u0441 \u043e\u0441\u043e\u0431\u044b\u043c\u0438 \u043f\u0443\u0442\u044f\u043c\u0438 (IDE, cppcheck, \u043f\u0430\u043f\u043a\u0430 \u0441 bat-\u0444\u0430\u0439\u043b\u0430\u043c\u0438 \u0438 \u0442.\u0434.)<\/p>\n<figure class=\"full-width\"><\/figure>\n<p>\u0412 \u043a\u043e\u043d\u0444\u0438\u0433\u0443\u0440\u0430\u0446\u0438\u0438 \u0441\u0438\u0441\u0442\u0435\u043c\u044b Jenkins \u0432 \u0440\u0430\u0437\u0434\u0435\u043b\u0435 GitLab \u0432\u044b\u0441\u0442\u0430\u0432\u0438\u043b \u0441\u0441\u044b\u043b\u043a\u0443 \u043d\u0430 ip-\u0430\u0434\u0440\u0435\u0441 GitLab \u0438 \u0434\u043e\u0431\u0430\u0432\u0438\u043b \u0430\u0432\u0442\u043e\u0440\u0438\u0437\u0430\u0446\u0438\u044e \u043f\u043e \u0442\u043e\u043a\u0435\u043d\u0443 GitLab API. <\/p>\n<figure class=\"full-width\"><\/figure>\n<p>\u0422\u043e\u043a\u0435\u043d \u0433\u0435\u043d\u0435\u0440\u0438\u0440\u0443\u0435\u0442\u0441\u044f \u0432 GitLab \u0438 \u0434\u043b\u044f \u043d\u0435\u0433\u043e \u0432\u044b\u0441\u0442\u0430\u0432\u0438\u043b \u0434\u043e\u0441\u0442\u0443\u043f \u043a API<\/p>\n<figure class=\"full-width\"><\/figure>\n<p>\u0412 \u043d\u0430\u0441\u0442\u0440\u043e\u0439\u043a\u0430\u0445 GitLab-\u043f\u0440\u043e\u0435\u043a\u0442\u0430 \u0434\u043b\u044f \u0441\u0431\u043e\u0440\u043a\u0438 \u0432 <strong>settings->integrations<\/strong> \u0432\u043a\u043b\u044e\u0447\u0438\u043b <strong>Jenkins CL<\/strong><\/p>\n<figure class=\"\"><\/figure>\n<p>\u0415\u0441\u043b\u0438 \u043d\u0435\u0442 <strong>Jenkins CL<\/strong>, \u0442\u043e \u0432\u043e \u0432\u043a\u043b\u0430\u0434\u043a\u0435 <strong>settings->webhooks<\/strong> \u043c\u043e\u0436\u043d\u043e \u043e\u0447\u0435\u043d\u044c \u043f\u043e\u0445\u043e\u0436\u0438\u043c \u043e\u0431\u0440\u0430\u0437\u043e\u043c \u043d\u0430\u0441\u0442\u0440\u043e\u0438\u0442\u044c \u0432\u0441\u0435 \u0442\u043e\u0436\u0435 \u0441\u0430\u043c\u043e\u0435, \u0441 \u043d\u0435\u0431\u043e\u043b\u044c\u0448\u043e\u0439 \u0440\u0430\u0437\u043d\u0438\u0446\u0435\u0439 \u0432 \u0441\u0442\u0435\u043f\u0435\u043d\u0438 \u0438\u043d\u0442\u0435\u0433\u0440\u0430\u0446\u0438\u0438 <strong>Jenkins<\/strong> \u0438 <strong>GitLab<\/strong>. <\/p>\n<p>Jenkins URL: <strong>http:\/\/MY_PC_IP:8080\/<\/strong><\/p>\n<p>Project Name: <strong>TEST_BUILDER<\/strong> (\u0414\u043e\u043b\u0436\u043d\u043e \u0441\u043e\u0432\u043f\u0430\u0434\u0430\u0442\u044c \u0441 \u0438\u043c\u0435\u043d\u0435\u043c \u043f\u043e\u0434\u0433\u043e\u0442\u043e\u0432\u043b\u0435\u043d\u043d\u043e\u0433\u043e \u0437\u0430\u0434\u0430\u043d\u0438\u044f \u043d\u0430 Jenkins)<\/p>\n<p>Username \u0438 \u043f\u0430\u0440\u043e\u043b\u044c \u2013 \u043e\u0442 \u043c\u043e\u0435\u0433\u043e Jenkins (\u043b\u043e\u0433\u0438\u043d: admin \u0438 \u043f\u0430\u0440\u043e\u043b\u044c, \u043a\u043e\u0442\u043e\u0440\u044b\u0439 \u043d\u0430\u0445\u043e\u0434\u0438\u0442\u0441\u044f, \u043f\u0440\u0438\u043c\u0435\u0440\u043d\u043e, \u0442\u0443\u0442 <em>C:\\ProgramData\\Jenkins.jenkins\\secrets\\initialAdminPassword<\/em>)<\/p>\n<figure class=\"full-width\"><\/figure>\n<p>\u041d\u0430 Jenkins \u0441\u043e\u0437\u0434\u0430\u043b Item <strong>Pipeline<\/strong> \u0441 \u043d\u0430\u0441\u0442\u0440\u043e\u0439\u043a\u043e\u0439 <strong>Pipeline Script from SCM<\/strong>.<\/p>\n<p>\u0422\u0435\u043f\u0435\u0440\u044c \u043c\u043e\u0436\u043d\u043e \u0437\u0430\u043f\u0443\u0441\u043a\u0430\u0442\u044c <strong>Jenkinsfile<\/strong> \u0438\u0437 \u043f\u0440\u043e\u0435\u043a\u0442\u0430 \u043d\u0430 git.<\/p>\n<p>\u0412\u043e\u0442 \u0438 \u0432\u0441\u0435. \u041f\u0440\u0438 \u043f\u0443\u0448\u0435 \u0432 \u0440\u0435\u043f\u043e\u0437\u0438\u0442\u043e\u0440\u0438\u0439 <strong>\u0441 \u0442\u0435\u0433\u043e\u043c<\/strong>, \u0431\u0443\u0434\u0435\u0442 \u043f\u0440\u043e\u0432\u0435\u0434\u0435\u043d\u0430 \u0441\u0431\u043e\u0440\u043a\u0430 \u043f\u0440\u043e\u0435\u043a\u0442\u0430 \u0441\u043e\u0433\u043b\u0430\u0441\u043d\u043e \u0441\u043a\u0440\u0438\u043f\u0442\u0443 <strong>Jenkinsfile<\/strong>. \u0410\u0440\u0442\u0435\u0444\u0430\u043a\u0442\u044b \u0441\u0431\u043e\u0440\u043a\u0438 \u043c\u043e\u0436\u043d\u043e \u0431\u0443\u0434\u0435\u0442 \u0437\u0430\u043a\u0438\u043d\u0443\u0442\u044c \u043d\u0430 \u0444\u0430\u0439\u043b\u043e\u0432\u044b\u0439 \u0441\u0435\u0440\u0432\u0435\u0440\/\u0434\u0440\u0443\u0433\u043e\u0439 \u0440\u0435\u043f\u043e\u0437\u0438\u0442\u043e\u0440\u0438\u0439 \u0441 \u043f\u043e\u043c\u043e\u0449\u044c\u044e .bat \u0444\u0430\u0439\u043b\u043e\u0432. <\/p>\n<p>\u0412\u043e\u0442 \u0442\u0430\u043a \u0432\u044b\u0433\u043b\u044f\u0434\u0438\u0442 \u043f\u0430\u0439\u043f\u043b\u0430\u0439\u043d \u0441\u0431\u043e\u0440\u043a\u0438 \u043f\u0440\u043e\u0435\u043a\u0442\u0430:<\/p>\n<figure class=\"full-width\"><\/figure>\n<p>\u0421\u043f\u0440\u0430\u0432\u0430 \u043d\u0430 \u0433\u0440\u0430\u0444\u0438\u043a\u0435 \u0432\u0438\u0434\u043d\u043e, \u0447\u0442\u043e \u0435\u0441\u0442\u044c \u0437\u0430\u043c\u0435\u0447\u0430\u043d\u0438\u044f \u043e\u0442 cppcheck \u2013 \u0441\u043c\u043e\u0442\u0440\u0438\u043c:<\/p>\n<figure class=\"full-width\"><\/figure>\n<p>\u041f\u0440\u0435\u0434\u0443\u043f\u0440\u0435\u0436\u0434\u0435\u043d\u0438\u044f \u043a\u043b\u0438\u043a\u0430\u0431\u0435\u043b\u044c\u043d\u044b \u2013 \u043c\u043e\u0436\u043d\u043e \u043f\u043e\u0441\u043c\u043e\u0442\u0440\u0435\u0442\u044c \u043a\u0430\u043a\u043e\u0439 \u0443\u0447\u0430\u0441\u0442\u043e\u043a \u043a\u043e\u0434\u0430 \u0432\u044b\u0437\u0432\u0430\u043b \u043f\u0440\u043e\u0431\u043b\u0435\u043c\u0443 \u043f\u0440\u044f\u043c \u0432 \u0432\u0435\u0431\u0435:<\/p>\n<figure class=\"full-width\"><\/figure>\n<p>\u041d\u0443, \u0438 \u0430\u0440\u0442\u0435\u0444\u0430\u043a\u0442\u044b \u0441\u0431\u043e\u0440\u043a\u0438 \u043f\u0443\u0448\u0430\u0442\u0441\u044f \u043d\u0430 \u0444\u0430\u0439\u043b\u043e\u0432\u044b\u0439 \u0441\u0435\u0440\u0432\u0435\u0440 (Samba, smb-\u043f\u0440\u043e\u0442\u043e\u043a\u043e\u043b) \u0438 \u043d\u0430 git, \u0442.\u043a. \u0432\u0435\u0441\u044f\u0442 \u0434\u043e\u0441\u0442\u0430\u0442\u043e\u0447\u043d\u043e \u043c\u0430\u043b\u043e<\/p>\n<figure class=\"full-width\"><\/figure>\n<h3>\u041d\u0435\u043c\u043d\u043e\u0433\u043e \u043f\u0440\u0438\u043c\u0435\u0440\u043e\u0432 \u0438 \u0431\u0430\u0442\u043d\u0438\u043a\u043e\u0432<\/h3>\n<p><em>\u0414\u0436\u0435\u043d\u043a\u0438\u043d\u0441 \u043f\u043e \u0434\u0435\u0444\u043e\u043b\u0442\u0443 \u0438\u0434\u0435\u0442 \u043a\u0430\u043a \u043b\u043e\u043a\u0430\u043b\u044c\u043d\u0430\u044f \u0441\u043b\u0443\u0436\u0431\u0430 \u2013 \u043d\u0443\u0436\u043d\u043e \u0441\u0434\u0435\u043b\u0430\u0442\u044c \u0435\u0433\u043e \u0430\u0434\u043c\u0438\u043d\u043e\u043c, \u0438\u043d\u0430\u0447\u0435 \u043e\u043d \u043d\u0435 \u0441\u043c\u043e\u0436\u0435\u0442 \u0432\u044b\u043b\u0435\u0437\u0430\u0442\u044c \u0432 \u0441\u0435\u0442\u043a\u0443<\/em><\/p>\n<p>\u0414\u043b\u044f \u0442\u043e\u0433\u043e, \u0447\u0442\u043e\u0431\u044b \u0441\u043e\u0431\u0440\u0430\u0442\u044c \u043f\u0440\u043e\u0435\u043a\u0442 \u0447\u0435\u0440\u0435\u0437 \u043a\u043e\u043d\u0441\u043e\u043b\u044c, \u043d\u0443\u0436\u043d\u043e \u0438\u0441\u043f\u043e\u043b\u044c\u0437\u043e\u0432\u0430\u0442\u044c \u0444\u0438\u0447\u0443, \u043a\u043e\u0442\u043e\u0440\u0430\u044f \u043d\u0430\u0437\u044b\u0432\u0430\u0435\u0442\u0441\u044f <strong>HeadlessBuild<\/strong>. \u0422.\u043a. CubeIDE \u043e\u0441\u043d\u043e\u0432\u0430\u043d\u0430 \u043d\u0430 <strong>Eclipse<\/strong>, \u0442\u043e \u0438 \u043a\u043e\u043c\u0430\u043d\u0434\u044b \u043e\u0447\u0435\u043d\u044c \u043f\u043e\u0445\u043e\u0436\u0438\u0435. \u0421\u0430\u043c\u0430 \u043a\u043e\u043c\u0430\u043d\u0434\u0430 \u0435\u0441\u0442\u044c \u0432 \u043f\u0440\u0438\u043c\u0435\u0440\u0435 \u0444\u0430\u0439\u043b\u0430 <strong>build_stm_prj.bat<\/strong>. \u041a\u0430\u043a \u0438\u043c\u0435\u043d\u043d\u043e \u0437\u0430\u043f\u0443\u0441\u043a\u0430\u0442\u044c stm32cubeide \u0447\u0435\u0440\u0435\u0437 \u0442\u0435\u0440\u043c\u0438\u043d\u0430\u043b \u0438 \u043a\u0430\u043a\u0438\u0435 \u043f\u0430\u0440\u0430\u043c\u0435\u0442\u0440\u044b \u043e\u043d\u0430 \u043f\u0440\u0438\u043d\u0438\u043c\u0430\u0435\u0442 \u2013 \u043c\u043e\u0436\u043d\u043e \u0443\u0437\u043d\u0430\u0442\u044c, \u0432\u044b\u043f\u043e\u043b\u043d\u0438\u0432 \u0442\u0430\u043a\u0443\u044e \u043a\u043e\u043c\u0430\u043d\u0434\u0443:<\/p>\n<pre><code class=\"bash\">\\stm32cubeidec.exe -nosplash  --launcher.suppressErrors -application org.eclipse.cdt.managedbuilder.core.headlessbuild  -help<\/code><\/pre>\n<p>\u041f\u0440\u0438\u043c\u0435\u0440 \u043a\u043e\u043c\u0430\u043d\u0434\u044b \u0441\u0431\u043e\u0440\u043a\u0438 \u043f\u0440\u043e\u0435\u043a\u0442\u0430 \u0434\u043b\u044f <strong>Atmel Studio<\/strong>:<\/p>\n<pre><code class=\"bash\">if exist \"build_log.txt\" del \"build_log.txt\" del \/q AVR_PROJ\\Release\\  \"E:\\Program Files (x86)\\Atmel\\Atmel Studio 6.2\\atmelstudio.exe\" AVR_PROJ.atsln \/rebuild Release \/out build_log.txt type build_log.txt<\/code><\/pre>\n<p>\u041f\u0440\u0438\u043c\u0435\u0440 \u0441\u043e\u0434\u0435\u0440\u0436\u0430\u043d\u0438\u044f <strong>Jenkinsfile<\/strong>. \u0413\u043b\u043e\u0431\u0430\u043b\u044c\u043d\u044b\u0435 \u043f\u0435\u0440\u0435\u043c\u0435\u043d\u043d\u044b\u0435 (${<strong>FILE_SERVER_ADDR<\/strong>} ${<strong>CPP_CHECK<\/strong>} ${<strong>BAT_TOOLS<\/strong>}) \u0437\u0430\u0434\u0430\u044e\u0442\u0441\u044f \u0432 \u043d\u0430\u0441\u0442\u0440\u043e\u0439\u043a\u0430\u0445 \u0441\u0438\u0441\u0442\u0435\u043c\u044b \u0443 Jenkins<\/p>\n<pre><code class=\"json\">def RESULT_FILE_NAME def TAGS_VERSION  pipeline{      agent any      environment{         PROJ_NAME = \"test_prj\"         PROJ_DIR = \"test_prj\"         PROJ_ARTIFACTS_TYPE = \"srec\"         PROJ_SOURCES = \"${PROJ_DIR}\\\\Core\\\\Src\"         PROJ_ARTIFACTS_DIR = \"${PROJ_DIR}\\\\Release\"         PROJ_ARTIFACTS_TYPE = \"srec\"         SERVER_ARTIFACTS_DIR = \"${FILE_SERVER_ADDR}\\\\FW_Folder\"         GITLAB_ARTIFACTS_DIR = \"test_prj1\"         GITLAB_TARGET_NAME = \"test_fw.${PROJ_ARTIFACTS_TYPE}\"     }      stages{         stage('Check CPP'){             steps{                 bat \"${CPP_CHECK} ${PROJ_SOURCES} 2> cppcheck-result.xml\"                 publishCppcheck pattern:'cppcheck-result.xml'             }         }         stage('Unit tests'){             steps{                 updateGitlabCommitStatus name: 'test', state: 'pending'                 dir(\"${PROJ_DIR}\"){                     bat \"${CEEDLING}\"                 }                 updateGitlabCommitStatus name: 'test', state: 'success'             }         }         stage('Building'){             steps{                 updateGitlabCommitStatus name: 'build', state: 'pending'                 bat \"${BAT_TOOLS}\\\\build_stm_prj.bat ${WORKSPACE} ${PROJ_NAME}\"                 updateGitlabCommitStatus name: 'build', state: 'success'             }         }         stage('Publish Artifact'){             steps{                 updateGitlabCommitStatus name: 'Artifact publication', state: 'pending'                 script {                     TAGS_VERSION = getCommandOutput(\"${BAT_TOOLS}\\\\get_tag.bat ${WORKSPACE}\")                     echo \"Tags is ${TAGS_VERSION}\"                 }                 bat \"${BAT_TOOLS}\\\\publish_file_to_gitlab.bat ${WORKSPACE} ${PROJ_ARTIFACTS_DIR} ${PROJ_NAME} ${GITLAB_ARTIFACTS_DIR} ${GITLAB_TARGET_NAME} \\\"${GITLAB_ARTIFACTS_DIR} project updated to version ${TAGS_VERSION}\\\"\"                 bat \"${BAT_TOOLS}\\\\publish_file_to_server.bat ${WORKSPACE} ${PROJ_ARTIFACTS_DIR} ${PROJ_NAME} ${SERVER_ARTIFACTS_DIR}\"                 updateGitlabCommitStatus name: 'Artifact publication', state: 'success'             }         }     }      post{                  success{             echo \"Build succes\"         }         unsuccessful{             updateGitlabCommitStatus name: 'build', state: 'failed'             updateGitlabCommitStatus name: 'Artifact publication', state: 'failed'             echo \"ouhh...\"         }     } }  def getCommandOutput(cmd) {     if (isUnix()){          return sh(returnStdout:true , script: '#!\/bin\/sh -e\\n' + cmd).trim()      } else{        stdout = bat(returnStdout:true , script: cmd).trim()        result = stdout.readLines().drop(1).join(\" \")               return result     }  }<\/code><\/pre>\n<p>\u0421\u043e\u0434\u0435\u0440\u0436\u0430\u043d\u0438\u0435 \u0444\u0430\u0439\u043b\u0430 <strong>get_tag.bat<\/strong>:<\/p>\n<pre><code class=\"bash\">@echo off set work_dir=%1 cd \/d %work_dir% setlocal enableextensions for \/F \"tokens=1-2 delims=.\" %%I in (' git describe --tags ^| grep -Eo \"[0-9]+\\.[0-9]+\"') do (     set tag_main=%%I     set tag_minor=%%J     ) echo %tag_main% %tag_minor%<\/code><\/pre>\n<p>\u0421\u043e\u0434\u0435\u0440\u0436\u0430\u043d\u0438\u0435 \u0444\u0430\u0439\u043b\u0430 <strong>build_stm_prj.bat<\/strong>:<\/p>\n<pre><code class=\"bash\">@echo off set proj_dir=%1 set project=%2  echo %proj_dir% echo %project%  cd \/d \"%proj_dir%\" if exist \"C:\\STM32CubeIDE_headlessBuilds\" rd \/q \/s \"C:\\STM32CubeIDE_headlessBuilds\"<\/code><\/pre>\n<\/div>\n<\/div>\n<\/div>\n<\/div>\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[],"tags":[],"class_list":["post-366621","post","type-post","status-publish","format-standard","hentry"],"_links":{"self":[{"href":"https:\/\/savepearlharbor.com\/index.php?rest_route=\/wp\/v2\/posts\/366621","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/savepearlharbor.com\/index.php?rest_route=\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/savepearlharbor.com\/index.php?rest_route=\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/savepearlharbor.com\/index.php?rest_route=\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/savepearlharbor.com\/index.php?rest_route=%2Fwp%2Fv2%2Fcomments&post=366621"}],"version-history":[{"count":0,"href":"https:\/\/savepearlharbor.com\/index.php?rest_route=\/wp\/v2\/posts\/366621\/revisions"}],"wp:attachment":[{"href":"https:\/\/savepearlharbor.com\/index.php?rest_route=%2Fwp%2Fv2%2Fmedia&parent=366621"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/savepearlharbor.com\/index.php?rest_route=%2Fwp%2Fv2%2Fcategories&post=366621"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/savepearlharbor.com\/index.php?rest_route=%2Fwp%2Fv2%2Ftags&post=366621"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}