Advertisement
MartinYanchev-99

Jenkins build

Nov 8th, 2021
238
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 9.76 KB | None | 0 0
  1. Started by an SCM change
  2. Running as SYSTEM
  3. Building in workspace /var/jenkins_home/workspace/job-01
  4. The recommended git tool is: NONE
  5. using credential GitHub
  6. > git rev-parse --resolve-git-dir /var/jenkins_home/workspace/job-01/.git # timeout=10
  7. Fetching changes from the remote Git repository
  8. > git config remote.origin.url https://github.com/myanch200/DevOps-CourseWork # timeout=10
  9. Fetching upstream changes from https://github.com/myanch200/DevOps-CourseWork
  10. > git --version # timeout=10
  11. > git --version # 'git version 2.32.0'
  12. using GIT_ASKPASS to set credentials
  13. > git fetch --tags --force --progress -- https://github.com/myanch200/DevOps-CourseWork +refs/heads/*:refs/remotes/origin/* # timeout=10
  14. > git rev-parse refs/remotes/origin/master^{commit} # timeout=10
  15. Checking out Revision bbb715168c02a22bcc1d4e92284e7e58a424ab91 (refs/remotes/origin/master)
  16. > git config core.sparsecheckout # timeout=10
  17. > git checkout -f bbb715168c02a22bcc1d4e92284e7e58a424ab91 # timeout=10
  18. Commit message: "Adding test for negative number"
  19. > git rev-list --no-walk d29d09f8e8a22853974ab9e551ca4f89749b3826 # timeout=10
  20. [job-01] $ /var/jenkins_home/sonarqube/sonar-scanner-3.3.0.1492-linux/bin/sonar-scanner -Dsonar.host.url=http://34.236.42.125:9000/ ******** -Dproject.settings=/var/jenkins_home/workspace/job-01/sonar-project.properties -Dsonar.projectBaseDir=/var/jenkins_home/workspace/job-01
  21. INFO: Scanner configuration file: /var/jenkins_home/sonarqube/sonar-scanner-3.3.0.1492-linux/conf/sonar-scanner.properties
  22. INFO: Project root configuration file: /var/jenkins_home/workspace/job-01/sonar-project.properties
  23. INFO: SonarQube Scanner 3.3.0.1492
  24. INFO: Java 11.0.13 Eclipse Adoptium (64-bit)
  25. INFO: Linux 5.4.0-1058-aws amd64
  26. INFO: User cache: /root/.sonar/cache
  27. INFO: SonarQube server 9.1.0
  28. INFO: Default locale: "en", source code encoding: "UTF-8" (analysis is platform dependent)
  29. INFO: Load global settings
  30. INFO: Load global settings (done) | time=96ms
  31. INFO: Server id: BF41A1F2-AX0BGcg9s0mt1I0bQrYw
  32. INFO: User cache: /root/.sonar/cache
  33. INFO: Load/download plugins
  34. INFO: Load plugins index
  35. INFO: Load plugins index (done) | time=51ms
  36. INFO: Load/download plugins (done) | time=138ms
  37. INFO: Process project properties
  38. INFO: Process project properties (done) | time=9ms
  39. INFO: Execute project builders
  40. INFO: Execute project builders (done) | time=2ms
  41. INFO: Project key: java-jenkins-sonar
  42. INFO: Base dir: /var/jenkins_home/workspace/job-01
  43. INFO: Working dir: /var/jenkins_home/workspace/job-01/.scannerwork
  44. INFO: Load project settings for component key: 'java-jenkins-sonar'
  45. INFO: Load project settings for component key: 'java-jenkins-sonar' (done) | time=20ms
  46. INFO: Auto-configuring with CI 'Jenkins'
  47. INFO: Load quality profiles
  48. INFO: Load quality profiles (done) | time=49ms
  49. INFO: Auto-configuring with CI 'Jenkins'
  50. INFO: Load active rules
  51. INFO: Load active rules (done) | time=1792ms
  52. INFO: Indexing files...
  53. INFO: Project configuration:
  54. INFO: 38 files indexed
  55. INFO: 0 files ignored because of scm ignore settings
  56. INFO: Quality profile for java: Sonar way
  57. INFO: Quality profile for xml: Sonar way
  58. INFO: ------------- Run sensors on module java-jenkins-sonar
  59. INFO: Load metrics repository
  60. INFO: Load metrics repository (done) | time=46ms
  61. INFO: Sensor JavaSensor [java]
  62. INFO: Configured Java source version (sonar.java.source): none
  63. INFO: JavaClasspath initialization
  64. INFO: JavaClasspath initialization (done) | time=9ms
  65. INFO: JavaTestClasspath initialization
  66. INFO: JavaTestClasspath initialization (done) | time=1ms
  67. INFO: Java "Main" source files AST scan
  68. INFO: 2 source files to be analyzed
  69. INFO: Load project repositories
  70. INFO: Load project repositories (done) | time=14ms
  71. INFO: 2/2 source files have been analyzed
  72. WARN: Dependencies/libraries were not provided for analysis of SOURCE files. The 'sonar.java.libraries' property is empty. Verify your configuration, as you might end up with less precise results.
  73. WARN: Unresolved imports/types have been detected during analysis. Enable DEBUG mode to see them.
  74. INFO: Java "Main" source files AST scan (done) | time=1681ms
  75. INFO: No "Test" source files to scan.
  76. INFO: No "Generated" source files to scan.
  77. INFO: Sensor JavaSensor [java] (done) | time=2077ms
  78. INFO: Sensor CSS Rules [cssfamily]
  79. INFO: No CSS, PHP, HTML or VueJS files are found in the project. CSS analysis is skipped.
  80. INFO: Sensor CSS Rules [cssfamily] (done) | time=0ms
  81. INFO: Sensor JaCoCo XML Report Importer [jacoco]
  82. INFO: 'sonar.coverage.jacoco.xmlReportPaths' is not defined. Using default locations: target/site/jacoco/jacoco.xml,target/site/jacoco-it/jacoco.xml,build/reports/jacoco/test/jacocoTestReport.xml
  83. INFO: No report imported, no coverage information will be imported by JaCoCo XML Report Importer
  84. INFO: Sensor JaCoCo XML Report Importer [jacoco] (done) | time=3ms
  85. INFO: Sensor C# Project Type Information [csharp]
  86. INFO: Sensor C# Project Type Information [csharp] (done) | time=0ms
  87. INFO: Sensor C# Analysis Log [csharp]
  88. INFO: Sensor C# Analysis Log [csharp] (done) | time=15ms
  89. INFO: Sensor C# Properties [csharp]
  90. INFO: Sensor C# Properties [csharp] (done) | time=0ms
  91. INFO: Sensor SurefireSensor [java]
  92. INFO: parsing [/var/jenkins_home/workspace/job-01/target/surefire-reports]
  93. INFO: Sensor SurefireSensor [java] (done) | time=63ms
  94. INFO: Sensor JavaXmlSensor [java]
  95. INFO: 5 source files to be analyzed
  96. INFO: 5/5 source files have been analyzed
  97. INFO: Sensor JavaXmlSensor [java] (done) | time=238ms
  98. INFO: Sensor HTML [web]
  99. INFO: Sensor HTML [web] (done) | time=4ms
  100. INFO: Sensor XML Sensor [xml]
  101. INFO: 5 source files to be analyzed
  102. INFO: 5/5 source files have been analyzed
  103. INFO: Sensor XML Sensor [xml] (done) | time=333ms
  104. INFO: Sensor VB.NET Project Type Information [vbnet]
  105. INFO: Sensor VB.NET Project Type Information [vbnet] (done) | time=1ms
  106. INFO: Sensor VB.NET Analysis Log [vbnet]
  107. INFO: Sensor VB.NET Analysis Log [vbnet] (done) | time=16ms
  108. INFO: Sensor VB.NET Properties [vbnet]
  109. INFO: Sensor VB.NET Properties [vbnet] (done) | time=0ms
  110. INFO: ------------- Run sensors on project
  111. INFO: Sensor Zero Coverage Sensor
  112. INFO: Sensor Zero Coverage Sensor (done) | time=11ms
  113. INFO: Sensor Java CPD Block Indexer
  114. INFO: Sensor Java CPD Block Indexer (done) | time=33ms
  115. INFO: SCM Publisher SCM provider for this project is: git
  116. INFO: SCM Publisher 4 source files to be analyzed
  117. INFO: SCM Publisher 4/4 source files have been analyzed (done) | time=210ms
  118. INFO: CPD Executor Calculating CPD for 2 files
  119. INFO: CPD Executor CPD calculation finished (done) | time=11ms
  120. INFO: Analysis report generated in 85ms, dir size=139.1 kB
  121. INFO: Analysis report compressed in 35ms, zip size=31.2 kB
  122. INFO: Analysis report uploaded in 21ms
  123. INFO: ANALYSIS SUCCESSFUL, you can browse http://34.236.42.125:9000/dashboard?id=java-jenkins-sonar
  124. INFO: Note that you will be able to access the updated dashboard once the server has processed the submitted analysis report
  125. INFO: More about the report processing at http://34.236.42.125:9000/api/ce/task?id=AX0BujL2s0mt1I0bQweK
  126. INFO: Analysis total time: 7.626 s
  127. INFO: ------------------------------------------------------------------------
  128. INFO: EXECUTION SUCCESS
  129. INFO: ------------------------------------------------------------------------
  130. INFO: Total time: 8.910s
  131. INFO: Final Memory: 18M/64M
  132. INFO: ------------------------------------------------------------------------
  133. [job-01] $ /bin/sh -xe /tmp/jenkins4653267408218773093.sh
  134. + javac src/main/Dec2Hex.java
  135. + java src/main/Dec2Hex
  136. Please provide argument for the program ![job-01] $ /var/jenkins_home/tools/hudson.tasks.Maven_MavenInstallation/maven/bin/mvn test
  137. [INFO] Scanning for projects...
  138. [INFO]
  139. [INFO] ------------< com.javatpoint.application1:my-application1 >-------------
  140. [INFO] Building Maven Quick Start Archetype 1.0
  141. [INFO] --------------------------------[ jar ]---------------------------------
  142. [INFO]
  143. [INFO] --- maven-resources-plugin:2.6:resources (default-resources) @ my-application1 ---
  144. [WARNING] Using platform encoding (UTF-8 actually) to copy filtered resources, i.e. build is platform dependent!
  145. [INFO] skip non existing resourceDirectory /var/jenkins_home/workspace/job-01/src/main/resources
  146. [INFO]
  147. [INFO] --- maven-compiler-plugin:3.1:compile (default-compile) @ my-application1 ---
  148. [INFO] No sources to compile
  149. [INFO]
  150. [INFO] --- maven-resources-plugin:2.6:testResources (default-testResources) @ my-application1 ---
  151. [WARNING] Using platform encoding (UTF-8 actually) to copy filtered resources, i.e. build is platform dependent!
  152. [INFO] skip non existing resourceDirectory /var/jenkins_home/workspace/job-01/src/test/resources
  153. [INFO]
  154. [INFO] --- maven-compiler-plugin:3.1:testCompile (default-testCompile) @ my-application1 ---
  155. [INFO] Changes detected - recompiling the module!
  156. [WARNING] File encoding has not been set, using platform encoding UTF-8, i.e. build is platform dependent!
  157. [INFO] Compiling 1 source file to /var/jenkins_home/workspace/job-01/target/test-classes
  158. [INFO]
  159. [INFO] --- maven-surefire-plugin:2.12.4:test (default-test) @ my-application1 ---
  160. [INFO] Surefire report directory: /var/jenkins_home/workspace/job-01/target/surefire-reports
  161.  
  162. -------------------------------------------------------
  163. T E S T S
  164. -------------------------------------------------------
  165. Running com.myanch.example.TestDec2Hex
  166. Tests run: 5, Failures: 0, Errors: 0, Skipped: 0, Time elapsed: 0.14 sec
  167.  
  168. Results :
  169.  
  170. Tests run: 5, Failures: 0, Errors: 0, Skipped: 0
  171.  
  172. [INFO] ------------------------------------------------------------------------
  173. [INFO] BUILD SUCCESS
  174. [INFO] ------------------------------------------------------------------------
  175. [INFO] Total time: 2.267 s
  176. [INFO] Finished at: 2021-11-08T22:45:25Z
  177. [INFO] ------------------------------------------------------------------------
  178. Recording test results
  179. [Checks API] No suitable checks publisher found.
  180. Finished: SUCCESS
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement