CC00022.CloudJenkins——|Jenkins&Jenkins配置.V12|——|Jenkins.任务构建|

一、Jenkins任务构建
### --- Jenkins任务构建

~~~     ——>立即构建
~~~     ——>查看构建结果:结果路径
~~~     ——>输出信息
~~~     ——>观察tomcat网站服务器,代码和脚本
CC00022.CloudJenkins——|Jenkins&Jenkins配置.V12|——|Jenkins.任务构建|_第1张图片
CC00022.CloudJenkins——|Jenkins&Jenkins配置.V12|——|Jenkins.任务构建|_第2张图片
二、控制台输出
### --- 控制台输出
~~~     由用户 admin 启动
Running as SYSTEM

~~~~        构建中 在工作空间 /root/.jenkins/workspace/yanqitest 中
The recommended git tool is: NONE
No credentials specified
 > /usr/local/git/bin/git rev-parse --is-inside-work-tree # timeout=10
Fetching changes from the remote Git repository
 > /usr/local/git/bin/git config remote.origin.url https://github.com/yanqivip/Jenkins.git # timeout=10
Fetching upstream changes from https://github.com/yanqivip/Jenkins.git
 > /usr/local/git/bin/git --version # timeout=10
 > git --version # 'git version 2.9.5'
 > /usr/local/git/bin/git fetch --tags --progress -- https://github.com/yanqivip/Jenkins.git +refs/heads/*:refs/remotes/origin/* # timeout=10
 > /usr/local/git/bin/git rev-parse refs/remotes/origin/master^{commit} # timeout=10
Checking out Revision 67604f7f9f30505e3bb3e8935c745154f04aa372 (refs/remotes/origin/master)
 > /usr/local/git/bin/git config core.sparsecheckout # timeout=10
 > /usr/local/git/bin/git checkout -f 67604f7f9f30505e3bb3e8935c745154f04aa372 # timeout=10
Commit message: "修改standard/1.1.2的依赖"
First time build. Skipping changelog.
Parsing POMs
Discovered a new module springmvc-maven:easy-springmvc-maven springmvc-maven
Modules changed, recalculating dependency graph
Established TCP socket on 38724
[yanqitest] $ /usr/local/jdk/bin/java -cp /root/.jenkins/plugins/maven-plugin/WEB-INF/lib/maven35-agent-1.13.jar:/usr/local/maven/boot/plexus-classworlds-2.5.2.jar:/usr/local/maven/conf/logging jenkins.maven3.agent.Maven35Main /usr/local/maven /usr/local/tomcat/webapps/jenkins/WEB-INF/lib/remoting-4.5.jar /root/.jenkins/plugins/maven-plugin/WEB-INF/lib/maven35-interceptor-1.13.jar /root/.jenkins/plugins/maven-plugin/WEB-INF/lib/maven3-interceptor-commons-1.13.jar 38724
<===[JENKINS REMOTING CAPACITY]===>channel started
Executing Maven:  -B -f /root/.jenkins/workspace/yanqitest/pom.xml clean package -Dmaven.test.skip=true
[INFO] Scanning for projects...
[WARNING] Some problems were encountered while building the effective model for springmvc-maven:easy-springmvc-maven:war:0.0.1-SNAPSHOT
[WARNING] 'build.plugins.plugin.version' for org.apache.maven.plugins:maven-war-plugin is missing. @ line 22, column 15
[INFO] ----------------< springmvc-maven:easy-springmvc-maven >----------------
[INFO] Building springmvc-maven 0.0.1-SNAPSHOT
[INFO] --------------------------------[ war ]---------------------------------
[INFO] Downloading from central: https://repo.maven.apache.org/maven2/org/apache/maven/plugins/maven-clean-plugin/2.5/maven-clean-plugin-2.5.pom
[INFO] Downloaded from central: https://repo.maven.apache.org/maven2/org/apache/maven/plugins/maven-clean-plugin/2.5/maven-clean-plugin-2.5.pom (3.9 kB at 1.9 kB/s)
#.........省略部分输出.............
[INFO] --- maven-clean-plugin:2.5:clean (default-clean) @ easy-springmvc-maven ---
#.........省略部分输出.............    
[INFO] --- maven-resources-plugin:2.6:resources (default-resources) @ easy-springmvc-maven ---    
#.........省略部分输出.............    
[INFO] Using 'UTF-8' encoding to copy filtered resources.
[INFO] skip non existing resourceDirectory /root/.jenkins/workspace/yanqitest/src/main/resources
[INFO] 
[INFO] --- maven-compiler-plugin:3.1:compile (default-compile) @ easy-springmvc-maven ---
#.........省略部分输出.............    
[INFO] Changes detected - recompiling the module!
[INFO] Compiling 2 source files to /root/.jenkins/workspace/yanqitest/target/classes
[INFO] 
[INFO] --- maven-resources-plugin:2.6:testResources (default-testResources) @ easy-springmvc-maven ---
[INFO] Not copying test resources
[INFO] 
[INFO] --- maven-compiler-plugin:3.1:testCompile (default-testCompile) @ easy-springmvc-maven ---
[INFO] Not compiling test sources
[INFO] 
[INFO] --- maven-surefire-plugin:2.12.4:test (default-test) @ easy-springmvc-maven ---    
#.........省略部分输出.............    
[INFO] Tests are skipped.
[INFO] 
[INFO] --- maven-war-plugin:2.2:war (default-war) @ easy-springmvc-maven ---
#.........省略部分输出.............    
[INFO] Packaging webapp
[INFO] Assembling webapp [easy-springmvc-maven] in [/root/.jenkins/workspace/yanqitest/target/easy-springmvc-maven]
[INFO] Processing war project
[INFO] Copying webapp resources [/root/.jenkins/workspace/yanqitest/src/main/webapp]
[INFO] Webapp assembled in [95 msecs]
[INFO] Building war: /root/.jenkins/workspace/yanqitest/target/easy-springmvc-maven.war
[INFO] WEB-INF/web.xml already added, skipping
[INFO] ------------------------------------------------------------------------
[INFO] BUILD SUCCESS
[INFO] ------------------------------------------------------------------------
[INFO] Total time: 11:37 min
[INFO] Finished at: 2021-03-25T15:20:52+08:00
[INFO] ------------------------------------------------------------------------
Waiting for Jenkins to finish collecting data
[JENKINS] Archiving /root/.jenkins/workspace/yanqitest/pom.xml to springmvc-maven/easy-springmvc-maven/0.0.1-SNAPSHOT/easy-springmvc-maven-0.0.1-SNAPSHOT.pom
[JENKINS] Archiving /root/.jenkins/workspace/yanqitest/target/easy-springmvc-maven.war to springmvc-maven/easy-springmvc-maven/0.0.1-SNAPSHOT/easy-springmvc-maven-0.0.1-SNAPSHOT.war
channel stopped
SSH: Connecting from host [server11]
SSH: Connecting with configuration [tomcat] ...
SSH: EXEC: completed after 201 ms
SSH: Disconnecting configuration [tomcat] ...
ERROR: Exception when publishing, exception message [Exec exit status not zero. Status [127]]
Build step 'Send build artifacts over SSH' changed build result to UNSTABLE
Finished: UNSTABLE
三、观察tomcat网站服务器,代码和脚本
### --- 就是推送过来的网站源码了

[root@server12 ~]# ls /jenkins/war/
easy-springmvc-maven.war
[root@server12 ~]# ls /root/www.yanqi.com
/www.yanqi.com
easy-springmvc-maven.war

你可能感兴趣的:(maven,tomcat,过拟合,数据建模,workflow)