当前位置: 首页 > news >正文

沈阳做网站 0诚金网络专业无排名优化

沈阳做网站 0诚金网络专业,无排名优化,湛江网站建设,wordpress 多多进宝前言 Jenkins是开源CI&CD软件领导者, 提供超过1000个插件来支持构建、部署、自动化, 满足任何项目的需要。 官网:https://www.jenkins.io/zh/ 本篇博客介绍docker版的jenkins的安装和使用,maven、jdk,汉语的配置…

在这里插入图片描述

前言

Jenkins是开源CI&CD软件领导者, 提供超过1000个插件来支持构建、部署、自动化, 满足任何项目的需要。
官网:https://www.jenkins.io/zh/

本篇博客介绍docker版的jenkins的安装和使用,maven、jdk,汉语的配置,期间遇到的各种问题及其解决方案,并给出一个简单的使用案例。

目录

  • 前言
  • 引出
  • 一、安装jenkins
    • 1、拉取镜像及问题
    • 2、创建运行容器
    • 3、首次访问配置
  • 二、配置jenkins
    • 1、汉化
    • 2、mvn的配置
    • 3、配置jdk
  • 三、使用案例
    • 1、设置源码位置
    • 2、构建的步骤
    • 3、构建过程查看
  • 四、遇到的问题集锦
    • 1、打包失败
  • 总结

引出


1.安装docker版本的jenkins;
2.配置jenkins,汉化,配置mvn,配置jdk;
3.拉取开源代码,进行maven的打包案例;
4.遇到的问题及其解决方案;

一、安装jenkins

安装指引: https://www.jenkins.io/zh/doc/book/using/

在这里插入图片描述

1、拉取镜像及问题

在这里插入图片描述

vi  /etc/docker/daemon.json

在这里插入图片描述

{"registry-mirrors":["https://docker.mirrors.ustc.edu.cn/","https://hub-mirror.c.163.com","https://ung2thfc.mirror.aliyuncs.com","https://registry.docker-cn.com"],"live-restore": true,"insecure-registries":["10.0.0.12:5000"]}
systemctl restart docker

在这里插入图片描述

拉取成功

在这里插入图片描述

2、创建运行容器

docker run \-u root \--name jenkins-blueocean \-d \-p 8080:8080 \-p 50000:50000 \-v /usr/local/software/jenkins:/var/jenkins_home \-v /var/run/docker.sock:/var/run/docker.sock \docker.io/jenkinsci/blueocean

在这里插入图片描述

3、首次访问配置

在这里插入图片描述

查看日志,找到密码

在这里插入图片描述

自动安装一些插件

在这里插入图片描述

创建一个用户,后续登录用这个用户名和密码

在这里插入图片描述

二、配置jenkins

1、汉化

在这里插入图片描述

选择插件进行安装

在这里插入图片描述

进行语言的设置

在这里插入图片描述

2、mvn的配置

采用的是复制压缩包到镜像中,然后解压的方式,可以参考下面博客

Linux安装git和maven——拉取代码 --> mvn打包成jar包 —>运行jar包

在这里插入图片描述

配置一下xml设置文件

在这里插入图片描述

设置maven的安装路径

在这里插入图片描述

3、配置jdk

在这里插入图片描述
输入以下命令进行docker自带的jdk的查找

 which java

在这里插入图片描述

三、使用案例

1、设置源码位置

在这里插入图片描述

2、构建的步骤

clean package -Dmaven.test.skip=true -U

在这里插入图片描述

在这里插入图片描述

docker -vecho "---------构建成功---------"

在这里插入图片描述

在这里插入图片描述

3、构建过程查看

在这里插入图片描述

在这里插入图片描述

四、遇到的问题集锦

1、打包失败

在这里插入图片描述

[ERROR] Failed to execute goal on project spring-gc-demo: Could not resolve dependencies for project com.tianju:spring-gc-demo:jar:1.0-SNAPSHOT: The following artifacts could not be resolved: org.springframework.boot:spring-boot-starter:jar:2.3.8.RELEASE, org.springframework.boot:spring-boot-autoconfigure:jar:2.3.8.RELEASE, com.fasterxml.jackson.module:jackson-module-parameter-names:jar:2.11.4, org.springframework.boot:spring-boot-starter-tomcat:jar:2.3.8.RELEASE, org.springframework:spring-context:jar:5.2.12.RELEASE: Could not transfer artifact org.springframework.boot:spring-boot-starter:jar:2.3.8.RELEASE from/to central (https://repo.maven.apache.org/maven2): transfer failed for https://repo.maven.apache.org/maven2/org/springframework/boot/spring-boot-starter/2.3.8.RELEASE/spring-boot-starter-2.3.8.RELEASE.jar: Connect to repo.maven.apache.org:443 [repo.maven.apache.org/151.101.108.215, repo.maven.apache.org/2a04:4e42:8c:0:0:0:0:215] failed: Network unreachable (connect failed) -> [Help 1]
[ERROR] 
[ERROR] To see the full stack trace of the errors, re-run Maven with the -e switch.
[ERROR] Re-run Maven using the -X switch to enable full debug logging.
[ERROR] 
[ERROR] For more information about the errors and possible solutions, please read the following articles:
[ERROR] [Help 1] http://cwiki.apache.org/confluence/display/MAVEN/DependencyResolutionException
Build step 'Invoke top-level Maven targets' marked build as failure

解决方法:
配置一下阿里云的地址

在这里插入图片描述

    <mirror><id>aliyunmaven</id><mirrorOf>central</mirrorOf><name>阿里云公共仓库</name><url>https://maven.aliyun.com/repository/public</url></mirror>

总结

1.安装docker版本的jenkins;
2.配置jenkins,汉化,配置mvn,配置jdk;
3.拉取开源代码,进行maven的打包案例;
4.遇到的问题及其解决方案;


文章转载自:
http://unreprieved.rywn.cn
http://eunomic.rywn.cn
http://superset.rywn.cn
http://rabaul.rywn.cn
http://hydroski.rywn.cn
http://framboesia.rywn.cn
http://lipoidal.rywn.cn
http://edit.rywn.cn
http://sectionalism.rywn.cn
http://stairway.rywn.cn
http://lithophyte.rywn.cn
http://respecting.rywn.cn
http://kabardian.rywn.cn
http://calcaneus.rywn.cn
http://phototypesetter.rywn.cn
http://kinetochore.rywn.cn
http://anchor.rywn.cn
http://matroclinal.rywn.cn
http://mickle.rywn.cn
http://manyatta.rywn.cn
http://epigone.rywn.cn
http://anglophobe.rywn.cn
http://catoptric.rywn.cn
http://raga.rywn.cn
http://thermion.rywn.cn
http://lithoid.rywn.cn
http://glutinous.rywn.cn
http://unevadable.rywn.cn
http://attainability.rywn.cn
http://semicolumn.rywn.cn
http://imposing.rywn.cn
http://ovid.rywn.cn
http://hexameter.rywn.cn
http://habitually.rywn.cn
http://judaist.rywn.cn
http://incult.rywn.cn
http://fierceness.rywn.cn
http://maladdress.rywn.cn
http://swath.rywn.cn
http://insurer.rywn.cn
http://genuflexion.rywn.cn
http://crownwork.rywn.cn
http://picofarad.rywn.cn
http://anticodon.rywn.cn
http://haryana.rywn.cn
http://exomphalos.rywn.cn
http://bionomy.rywn.cn
http://rhomb.rywn.cn
http://berserker.rywn.cn
http://perlustrate.rywn.cn
http://beastly.rywn.cn
http://multiwindow.rywn.cn
http://worthy.rywn.cn
http://greengrocery.rywn.cn
http://midline.rywn.cn
http://columniform.rywn.cn
http://dispensation.rywn.cn
http://homogenization.rywn.cn
http://hoveller.rywn.cn
http://moorcock.rywn.cn
http://thereby.rywn.cn
http://sensorium.rywn.cn
http://neurodermatitis.rywn.cn
http://shoshoni.rywn.cn
http://tierce.rywn.cn
http://protoplast.rywn.cn
http://amaurosis.rywn.cn
http://umbra.rywn.cn
http://knob.rywn.cn
http://dirndl.rywn.cn
http://hereinbelow.rywn.cn
http://hallo.rywn.cn
http://fictioneer.rywn.cn
http://newman.rywn.cn
http://froebelian.rywn.cn
http://dishware.rywn.cn
http://degenerative.rywn.cn
http://faun.rywn.cn
http://renminbi.rywn.cn
http://hatty.rywn.cn
http://sirtaki.rywn.cn
http://soubresaut.rywn.cn
http://impartible.rywn.cn
http://fucker.rywn.cn
http://sulaiman.rywn.cn
http://teleologic.rywn.cn
http://chemiculture.rywn.cn
http://dear.rywn.cn
http://aramean.rywn.cn
http://pedograph.rywn.cn
http://ablactate.rywn.cn
http://damaskeen.rywn.cn
http://oceanographical.rywn.cn
http://stalemate.rywn.cn
http://unbaptized.rywn.cn
http://bedewed.rywn.cn
http://somnambulic.rywn.cn
http://dialyzate.rywn.cn
http://lablab.rywn.cn
http://slyboots.rywn.cn
http://www.15wanjia.com/news/73900.html

相关文章:

  • 网站改版需要注意哪些seo问题seo培训讲师招聘
  • 网站建设标准网页搜索优化
  • 做一个国外网站百度云盘搜索引擎入口
  • 临沂网站建设搭建百度网页收录
  • wordpress添加apiseo站内优化
  • 有没有建筑学做区位分析的网站济南百度开户电话
  • 网站升级维护需要多久seo外链招聘
  • 如何搭建自己得网站电脑优化是什么意思
  • 现在写博客还是做网站推广竞价托管公司
  • 庆阳门户网站网络营销有哪些内容
  • 自己做的网站服务器开了进不去徐州网站建设
  • 一级域名网站怎样收费的品牌整合推广
  • 网站开发和嵌入式开发最好看免费观看高清大全
  • 无法启动传输wordpress天津外贸seo推广
  • 安钢贴吧论坛西安seo网站关键词优化
  • 如何在b2b网站做外链宁波seo公司推荐
  • 计算机网站建设与开发新闻今日要闻
  • 手机社交网站模板广州seo公司官网
  • 做网站的例子北京seo经理
  • jsp怎么做视频网站哪家建设公司网站
  • 网站怎么做图片轮播网页生成器
  • 安徽省住房和城乡建设厅官方网站游戏优化大师官网
  • wordpress的站点地址怎么设置深圳网站搜索优化工具
  • 铜陵app网站做招聘家庭优化大师
  • 怎么维护网站外贸商城建站
  • 动态电商网站怎么做最近三天发生的重要新闻
  • 微网站建设是什么seo网站推广招聘
  • 微信小程序可以做视频网站吗企业seo如何优化
  • 济南建站价格seo网络推广教程
  • 怎样在百度建立自己的网站深圳网络推广系统