• 嗯。有什么办法可以解决这种情况吗?想最后拿一个merge完了的报告去找开发一块讨论这块没有覆盖到的代码才有意义。不然一个一个看的话,开销太大了

  • 但是如果我在v1的时候生成的exec,测试了A文件的1-100行,如果修改bug改了这100行,接着我测试了101-200行的case,生成了v2的exec。现在v2的exec和v1的exec对于0-100行的映射就不一样了吧。这种情况怎么用merge最后生成一个总的覆盖率报告呢?

  • 想请问一下这个需求可以cover不,我在版本v1发布了一个应用,然后手工测试了这个版本的应用,jacoco也有了报告r1。然后开发修改了一些bug,发布了v2的应用。经过测试后jacoco有了报告r2.请问r2可以记录下我r1的报告做一个merge吗?

  • Author only
  • Docker 实战 at March 06, 2019

    额。最神奇的就是这。。没有日志。。-d后台启动用logs看和直接docker run都是。要把docker build的过程发给你吗?或者能打包一下exec这个folder我下下来用diff比较一下
    [root@centos72_base exec]# docker run --name automation -p 8999:22 -d testautomation
    b16c7ef9b883ba8ba71c50d6bbe8436be9cb7b2b64d7ddd0a56c3b71527e5998
    [root@centos72_base exec]# docker logs automation
    [root@centos72_base exec]# docker rm automation
    automation
    [root@centos72_base exec]# docker run --name automation -p 8999:22 testautomation
    [root@centos72_base exec]#

    Build过程 省略了中间的安装,看了下没发现有什么其他错误.

    [root@centos72_base exec]# docker build -t testautomation .
    Sending build context to Docker daemon 398.4MB
    [WARNING]: Empty continuation line found in:
    RUN yum install -y wget openssh-server vim git openssh-clients && /usr/bin/ssh-keygen -A && wget https://mirror.olnevhost.net/pub/apache/maven/maven-3/3.0.5/binaries/apache-maven-3.0.5-bin.tar.gz && tar xvf apache-maven-3.0.5-bin.tar.gz && mv apache-maven-3.0.5 /usr/local/maven && ssh-keygen -t rsa -f /root/.ssh/id_rsa -N '' && cat /root/.ssh/id_rsa.pub > /root/.ssh/authorized_keys && chmod 600 /root/.ssh/authorized_keys && echo "StrictHostKeyChecking no" > /root/.ssh/config && echo "UserKnownHostsFile /dev/null" >> /root/.ssh/config && echo changeme|passwd --stdin root && echo "export M2_HOME=/usr/local/maven" >> /root/.bashrc && echo "export M2=$M2_HOME/bin" >> /root/.bashrc && echo "export JAVA_HOME=/opt/java-1.8" >> /root/.bashrc && echo "export PATH=$JAVA_HOME;$M2;$PATH" >> /root/.bashrc ENTRYPOINT ["/bin/sh","/root/entrypoint.sh"]
    [WARNING]: Empty continuation lines will become errors in a future release.
    Step 1/8 : FROM centos
    ---> 1e1148e4cc2c
    Step 2/8 : ADD entrypoint.sh /root
    ---> f9216775c1c5
    Step 3/8 : ADD jdk /opt/java-1.8
    ---> 0131c5a114e6
    Step 4/8 : ENV M2_HOME=/usr/local/maven
    ---> Running in 54424554a864
    Removing intermediate container 54424554a864
    ---> 1480bc9b7b5e
    Step 5/8 : ENV M2=$M2_HOME/bin
    ---> Running in 4bca776572c5
    Removing intermediate container 4bca776572c5
    ---> 3fcc35fb68d2
    Step 6/8 : ENV JAVA_HOME=/opt/java-1.8
    ---> Running in 79fba94f6764
    Removing intermediate container 79fba94f6764
    ---> 038fa5bc6926
    Step 7/8 : ENV PATH=$JAVA_HOME;$M2;$PATH
    ---> Running in d3182635627d
    Removing intermediate container d3182635627d
    ---> a05a5394459d
    Step 8/8 : RUN yum install -y wget openssh-server vim git openssh-clients && /usr/bin/ssh-keygen -A && wget https://mirror.olnevhost.net/pub/apache/maven/maven-3/3.0.5/binaries/apache-maven-3.0.5-bin.tar.gz && tar xvf apache-maven-3.0.5-bin.tar.gz && mv apache-maven-3.0.5 /usr/local/maven && ssh-keygen -t rsa -f /root/.ssh/id_rsa -N '' && cat /root/.ssh/id_rsa.pub > /root/.ssh/authorized_keys && chmod 600 /root/.ssh/authorized_keys && echo "StrictHostKeyChecking no" > /root/.ssh/config && echo "UserKnownHostsFile /dev/null" >> /root/.ssh/config && echo changeme|passwd --stdin root && echo "export M2_HOME=/usr/local/maven" >> /root/.bashrc && echo "export M2=$M2_HOME/bin" >> /root/.bashrc && echo "export JAVA_HOME=/opt/java-1.8" >> /root/.bashrc && echo "export PATH=$JAVA_HOME;$M2;$PATH" >> /root/.bashrc ENTRYPOINT ["/bin/sh","/root/entrypoint.sh"]
    ---> Running in 093e22e63db3
    Loaded plugins: fastestmirror, ovl
    Determining fastest mirrors
    * base: mirror.datto.com
    * extras: yum.tamu.edu
    * updates: mirrors.tummy.com
    ......

    Generating public/private rsa key pair.
    Created directory '/root/.ssh'.
    Your identification has been saved in /root/.ssh/id_rsa.
    Your public key has been saved in /root/.ssh/id_rsa.pub.
    The key fingerprint is:
    SHA256:Zmkz5SBh8LDzEv+pGMm6azHW6x98VsrJV5XQY91NgQU root@093e22e63db3
    The key's randomart image is:
    +---[RSA 2048]----+
    | o.o .E+==|
    | = . o+.+|
    | + o . . .o. |
    | = . = . |
    | .. o S o . |
    | +..+ B B . |
    | . o+.o X . |
    | ...o = . |
    | .++o.o |
    +----[SHA256]-----+
    Changing password for user root.
    passwd: all authentication tokens updated successfully.
    Removing intermediate container 093e22e63db3
    ---> 8f609fd13252
    Successfully built 8f609fd13252
    Successfully tagged testautomation:latest

  • Docker 实战 at March 06, 2019

    搞了一天发现还是没法连接到slave node。docker run启动之后自动的就exit了。
    下面是几个文件截图。麻烦有空帮我看看呢。或者我打个tar包。

    DockerFile

    文件路径

    entrypoint.sh

  • Docker 实战 at March 05, 2019

    今天在部署slave节点的时候想问一个问题。
    在jenkins配置slave节点的登陆的时候,账号和密码是用的宿主机的吗?

  • Author only
  • Docker 实战 at March 03, 2019

    练习一

    docker run --name myjenkins_host -d --net host -v /home/owen/images/jenkins_log:/var/jenkins_home jenkins
    docker run --name myjenkins_bridge -d --net bridge -p 8999:8080 -v /home/owen/images/jenkins_log:/var/jenkins_home jenkins

    练习二

    DokerFIle
    FROM centos
    ADD entrypoint.sh /root
    RUN yum install -y vim
    ENTRYPOINT ["/bin/bash","/root/entrypoint.sh"]

    docker build myping -f .
    docker run --name myping -itd -p 8999:22 myping

    ###练习三
    start.sh

    docker run -d --name myconan myconans
    docker run -d --name myholmes --net container:myconan holmes

  • 第一题

    less /tmp/nginx.log |grep -E " 404 | 500 "|head -5