{"id":14055,"date":"2020-02-05T05:53:50","date_gmt":"2020-02-05T04:53:50","guid":{"rendered":"http:\/\/blog.wenzlaff.de\/?p=14055"},"modified":"2020-02-05T18:59:10","modified_gmt":"2020-02-05T17:59:10","slug":"buildpipeline-fuer-maven-command-plugn","status":"publish","type":"post","link":"http:\/\/blog.wenzlaff.de\/?p=14055","title":{"rendered":"Buildpipeline f\u00fcr Maven-Command-Plugin im Docker \u00fcber Gitlab"},"content":{"rendered":"<p>Auf <a href=\"https:\/\/gitlab.com\/IT-Berater\/twmavencommandplugin\">Gitlab<\/a> liegt nun der Quellcode, f\u00fcr den der sich das ganze Projekt einfach holen will: git clone git@gitlab.com:IT-Berater\/twmavencommandplugin.git<\/p>\n<p><a href=\"http:\/\/blog.wenzlaff.de\/wp-content\/uploads\/2020\/02\/Bildschirmfoto-2020-02-04-um-19.38.23.png\"><img loading=\"lazy\" decoding=\"async\" src=\"http:\/\/blog.wenzlaff.de\/wp-content\/uploads\/2020\/02\/Bildschirmfoto-2020-02-04-um-19.38.23.png\" alt=\"\" width=\"1036\" height=\"382\" class=\"aligncenter size-full wp-image-14063\" srcset=\"http:\/\/blog.wenzlaff.de\/wp-content\/uploads\/2020\/02\/Bildschirmfoto-2020-02-04-um-19.38.23.png 1036w, http:\/\/blog.wenzlaff.de\/wp-content\/uploads\/2020\/02\/Bildschirmfoto-2020-02-04-um-19.38.23-300x111.png 300w, http:\/\/blog.wenzlaff.de\/wp-content\/uploads\/2020\/02\/Bildschirmfoto-2020-02-04-um-19.38.23-1024x378.png 1024w, http:\/\/blog.wenzlaff.de\/wp-content\/uploads\/2020\/02\/Bildschirmfoto-2020-02-04-um-19.38.23-768x283.png 768w\" sizes=\"auto, (max-width: 767px) 89vw, (max-width: 1000px) 54vw, (max-width: 1071px) 543px, 580px\" \/><\/a><\/p>\n<p>Diese Buildpipeline f\u00fcr Java 8 und 11 wird \u00fcber das folgende Script gesteuert und l\u00e4uft im Docker-Container:<!--more--><\/p>\n<pre class=\"lang:default decode:true \" >#\r\n# Jobs f\u00fcr das Projekt oder auch allgemein\r\n# als Template f\u00fcr Maven Jobs f\u00fcr compile und build\r\n# mit unterschiedlichen Java Versionen\r\n#\r\n# Thomas Wenzlaff http:\/\/www.wenzlaff.info\r\n#\r\n\r\n#\r\n# Die Jobs der Pipeline\r\n#\r\nstages:\r\n  - compile\r\n  - build\r\n\r\n#\r\n# Macht ein Maven clean compile Java 8\r\n# \r\nJava-9 compile Job:\r\n   stage: compile\r\n   image: maven:3-jdk-8\r\n   script:   \r\n   - mvn clean compile -B\r\n   \r\n#\r\n# Macht ein install mit deploy ins lokale Repo\r\n#\r\nInstall Java 11 :\r\n   stage: build\r\n   image: aiwin\/maven3-base\r\n   script:   \r\n   - mvn clean install -B\r\n   artifacts:\r\n    paths:\r\n      - target\/*.jar\r\n\r\n<\/pre>\n","protected":false},"excerpt":{"rendered":"<p>Auf Gitlab liegt nun der Quellcode, f\u00fcr den der sich das ganze Projekt einfach holen will: git clone git@gitlab.com:IT-Berater\/twmavencommandplugin.git Diese Buildpipeline f\u00fcr Java 8 und 11 wird \u00fcber das folgende Script gesteuert und l\u00e4uft im Docker-Container:<\/p>\n","protected":false},"author":2,"featured_media":0,"comment_status":"closed","ping_status":"closed","sticky":false,"template":"","format":"standard","meta":{"_import_markdown_pro_load_document_selector":0,"_import_markdown_pro_submit_text_textarea":"","footnotes":""},"categories":[220,3161,4,5,3163,1975,79,7],"tags":[377,3903,2502,66,2970,3904],"class_list":["post-14055","post","type-post","status-publish","format-standard","hentry","category-anleitung","category-build","category-eclipse","category-java","category-maven","category-plugin","category-programmierung","category-tools","tag-build","tag-buildpipeline","tag-docker","tag-maven","tag-pipeline","tag-yaml"],"_links":{"self":[{"href":"http:\/\/blog.wenzlaff.de\/index.php?rest_route=\/wp\/v2\/posts\/14055","targetHints":{"allow":["GET"]}}],"collection":[{"href":"http:\/\/blog.wenzlaff.de\/index.php?rest_route=\/wp\/v2\/posts"}],"about":[{"href":"http:\/\/blog.wenzlaff.de\/index.php?rest_route=\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"http:\/\/blog.wenzlaff.de\/index.php?rest_route=\/wp\/v2\/users\/2"}],"replies":[{"embeddable":true,"href":"http:\/\/blog.wenzlaff.de\/index.php?rest_route=%2Fwp%2Fv2%2Fcomments&post=14055"}],"version-history":[{"count":0,"href":"http:\/\/blog.wenzlaff.de\/index.php?rest_route=\/wp\/v2\/posts\/14055\/revisions"}],"wp:attachment":[{"href":"http:\/\/blog.wenzlaff.de\/index.php?rest_route=%2Fwp%2Fv2%2Fmedia&parent=14055"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"http:\/\/blog.wenzlaff.de\/index.php?rest_route=%2Fwp%2Fv2%2Fcategories&post=14055"},{"taxonomy":"post_tag","embeddable":true,"href":"http:\/\/blog.wenzlaff.de\/index.php?rest_route=%2Fwp%2Fv2%2Ftags&post=14055"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}