Advertisement
Guest User

Untitled

a guest
Mar 18th, 2016
168
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 10.79 KB | None | 0 0
  1. Started by user Stefan
  2. Building in workspace /var/lib/jenkins/workspace/vps-db-migrate-develop
  3. > git rev-parse --is-inside-work-tree # timeout=10
  4. Fetching changes from the remote Git repository
  5. > git config remote.origin.url https://github.com/irewind/vps-db-migrate.git # timeout=10
  6. Fetching upstream changes from https://github.com/irewind/vps-db-migrate.git
  7. > git --version # timeout=10
  8. using .gitcredentials to set credentials
  9. > git config --local credential.username stefanAlexandru # timeout=10
  10. > git config --local credential.helper store --file=/tmp/git2939696447128874808.credentials # timeout=10
  11. > git -c core.askpass=true fetch --tags --progress https://github.com/irewind/vps-db-migrate.git +refs/heads/*:refs/remotes/origin/*
  12. > git config --local --remove-section credential # timeout=10
  13. > git rev-parse refs/remotes/origin/develop^{commit} # timeout=10
  14. > git rev-parse refs/remotes/origin/origin/develop^{commit} # timeout=10
  15. Checking out Revision a6e7f1870b2e0dbc640b793e3cc22e967625590f (refs/remotes/origin/develop)
  16. > git config core.sparsecheckout # timeout=10
  17. > git checkout -f a6e7f1870b2e0dbc640b793e3cc22e967625590f
  18. > git rev-list a6e7f1870b2e0dbc640b793e3cc22e967625590f # timeout=10
  19. [vps-db-migrate-develop] $ /bin/sh -xe /tmp/hudson8896574638090178399.sh
  20. + export JAVA_HOME=/usr/lib/jvm/java-8-oracle/
  21. + export HOST=develop-irewind-com-2
  22. + export GRADLE_HOME=/opt/gradle-2.11
  23. + export PATH=/usr/lib/jvm/java-8-oracle/bin:/usr/lib/jvm/java-8-oracle/bin:/usr/local/bin:/usr/bin:/bin:/usr/local/games:/usr/games:/opt/gradle-2.11/bin
  24. + cd /var/lib/jenkins/workspace/vps-db-migrate-develop
  25. + chmod -R 777 .
  26. + cat
  27. + gradle clean flywayRepair -i
  28. Starting Build
  29. Settings evaluated using settings file '/master/settings.gradle'.
  30. Projects loaded. Root project using build file '/var/lib/jenkins/workspace/vps-db-migrate-develop/build.gradle'.
  31. Included projects: [root project 'vps-db-migrate-develop']
  32. Evaluating root project 'vps-db-migrate-develop' using build file '/var/lib/jenkins/workspace/vps-db-migrate-develop/build.gradle'.
  33. All projects evaluated.
  34. Selected primary task 'clean' from project :
  35. Selected primary task 'flywayRepair' from project :
  36. Tasks to be executed: [task ':clean', task ':compileJava', task ':processResources', task ':classes', task ':compileTestJava', task ':processTestResources', task ':testClasses', task ':flywayRepair']
  37. :clean (Thread[main,5,main]) started.
  38. :clean
  39. Executing task ':clean' (up-to-date check took 0.001 secs) due to:
  40. Task has not declared any outputs.
  41. :clean (Thread[main,5,main]) completed. Took 0.014 secs.
  42. :compileJava (Thread[main,5,main]) started.
  43. :compileJava
  44. file or directory '/var/lib/jenkins/workspace/vps-db-migrate-develop/src/main/java', not found
  45. Skipping task ':compileJava' as it has no source files.
  46. :compileJava UP-TO-DATE
  47. :compileJava (Thread[main,5,main]) completed. Took 0.067 secs.
  48. :processResources (Thread[main,5,main]) started.
  49. :processResources
  50. Executing task ':processResources' (up-to-date check took 0.128 secs) due to:
  51. Output file /var/lib/jenkins/workspace/vps-db-migrate-develop/gradle_build/resources/main has changed.
  52. Output file /var/lib/jenkins/workspace/vps-db-migrate-develop/gradle_build/resources/main/db/migration/PV-19.0-composition-profiles-alter.sql has been removed.
  53. Output file /var/lib/jenkins/workspace/vps-db-migrate-develop/gradle_build/resources/main/db/migration/PV-21.4-security-templates.sql has been removed.
  54. :processResources (Thread[main,5,main]) completed. Took 0.338 secs.
  55. :classes (Thread[main,5,main]) started.
  56. :classes
  57. Skipping task ':classes' as it has no actions.
  58. :classes (Thread[main,5,main]) completed. Took 0.005 secs.
  59. :compileTestJava (Thread[main,5,main]) started.
  60. :compileTestJava
  61. file or directory '/var/lib/jenkins/workspace/vps-db-migrate-develop/src/test/java', not found
  62. Skipping task ':compileTestJava' as it has no source files.
  63. :compileTestJava UP-TO-DATE
  64. :compileTestJava (Thread[main,5,main]) completed. Took 0.003 secs.
  65. :processTestResources (Thread[main,5,main]) started.
  66. :processTestResources
  67. file or directory '/var/lib/jenkins/workspace/vps-db-migrate-develop/src/test/resources', not found
  68. Skipping task ':processTestResources' as it has no source files.
  69. :processTestResources UP-TO-DATE
  70. :processTestResources (Thread[main,5,main]) completed. Took 0.002 secs.
  71. :testClasses (Thread[main,5,main]) started.
  72. :testClasses
  73. Skipping task ':testClasses' as it has no actions.
  74. :testClasses UP-TO-DATE
  75. :testClasses (Thread[main,5,main]) completed. Took 0.0 secs.
  76. :flywayRepair (Thread[main,5,main]) started.
  77. :flywayRepair
  78. Executing task ':flywayRepair' (up-to-date check took 0.0 secs) due to:
  79. Task has not declared any outputs.
  80. Flyway 3.2.1 by Boxfuse
  81. Database: jdbc:mysql://develop-irewind-com-2/video_processor_secured_standalone?zeroDateTimeBehavior=convertToNull&characterEncoding=utf8&useCompression=true (MySQL 5.5)
  82. Metadata table `video_processor_secured_standalone`.`schema_version` successfully repaired (execution time 00:00.140s).
  83. Manual cleanup of the remaining effects the failed migration may still be required.
  84. :flywayRepair (Thread[main,5,main]) completed. Took 0.998 secs.
  85.  
  86. BUILD SUCCESSFUL
  87.  
  88. Total time: 6.197 secs
  89. Stopped 0 compiler daemon(s).
  90.  
  91. This build could be faster, please consider using the Gradle Daemon: https://docs.gradle.org/2.11/userguide/gradle_daemon.html
  92. + gradle clean flywayMigrate -i
  93. Starting Build
  94. Settings evaluated using settings file '/master/settings.gradle'.
  95. Projects loaded. Root project using build file '/var/lib/jenkins/workspace/vps-db-migrate-develop/build.gradle'.
  96. Included projects: [root project 'vps-db-migrate-develop']
  97. Evaluating root project 'vps-db-migrate-develop' using build file '/var/lib/jenkins/workspace/vps-db-migrate-develop/build.gradle'.
  98. All projects evaluated.
  99. Selected primary task 'clean' from project :
  100. Selected primary task 'flywayMigrate' from project :
  101. Tasks to be executed: [task ':clean', task ':compileJava', task ':processResources', task ':classes', task ':compileTestJava', task ':processTestResources', task ':testClasses', task ':flywayMigrate']
  102. :clean (Thread[main,5,main]) started.
  103. :clean
  104. Executing task ':clean' (up-to-date check took 0.001 secs) due to:
  105. Task has not declared any outputs.
  106. :clean (Thread[main,5,main]) completed. Took 0.011 secs.
  107. :compileJava (Thread[main,5,main]) started.
  108. :compileJava
  109. file or directory '/var/lib/jenkins/workspace/vps-db-migrate-develop/src/main/java', not found
  110. Skipping task ':compileJava' as it has no source files.
  111. :compileJava UP-TO-DATE
  112. :compileJava (Thread[main,5,main]) completed. Took 0.022 secs.
  113. :processResources (Thread[main,5,main]) started.
  114. :processResources
  115. Executing task ':processResources' (up-to-date check took 0.114 secs) due to:
  116. Output file /var/lib/jenkins/workspace/vps-db-migrate-develop/gradle_build/resources/main has changed.
  117. Output file /var/lib/jenkins/workspace/vps-db-migrate-develop/gradle_build/resources/main/db/migration/PV-19.0-composition-profiles-alter.sql has been removed.
  118. Output file /var/lib/jenkins/workspace/vps-db-migrate-develop/gradle_build/resources/main/db/migration/PV-21.4-security-templates.sql has been removed.
  119. :processResources (Thread[main,5,main]) completed. Took 0.251 secs.
  120. :classes (Thread[main,5,main]) started.
  121. :classes
  122. Skipping task ':classes' as it has no actions.
  123. :classes (Thread[main,5,main]) completed. Took 0.001 secs.
  124. :compileTestJava (Thread[main,5,main]) started.
  125. :compileTestJava
  126. file or directory '/var/lib/jenkins/workspace/vps-db-migrate-develop/src/test/java', not found
  127. Skipping task ':compileTestJava' as it has no source files.
  128. :compileTestJava UP-TO-DATE
  129. :compileTestJava (Thread[main,5,main]) completed. Took 0.003 secs.
  130. :processTestResources (Thread[main,5,main]) started.
  131. :processTestResources
  132. file or directory '/var/lib/jenkins/workspace/vps-db-migrate-develop/src/test/resources', not found
  133. Skipping task ':processTestResources' as it has no source files.
  134. :processTestResources UP-TO-DATE
  135. :processTestResources (Thread[main,5,main]) completed. Took 0.006 secs.
  136. :testClasses (Thread[main,5,main]) started.
  137. :testClasses
  138. Skipping task ':testClasses' as it has no actions.
  139. :testClasses UP-TO-DATE
  140. :testClasses (Thread[main,5,main]) completed. Took 0.003 secs.
  141. :flywayMigrate (Thread[main,5,main]) started.
  142. :flywayMigrate
  143. Executing task ':flywayMigrate' (up-to-date check took 0.0 secs) due to:
  144. Task has not declared any outputs.
  145. Flyway 3.2.1 by Boxfuse
  146. Database: jdbc:mysql://develop-irewind-com-2/video_processor_secured_standalone?zeroDateTimeBehavior=convertToNull&characterEncoding=utf8&useCompression=true (MySQL 5.5)
  147. Validated 67 migrations (execution time 00:00.089s)
  148. Current version of schema `video_processor_secured_standalone`: 22.2
  149. Migrating schema `video_processor_secured_standalone` to version 22.3 - acl-migration-oid-with-location-as-parent
  150. DB: Unknown column 'entity.locatlocationion_id' in 'on clause' (SQL State: 42S22 - Error Code: 1054)
  151. Migration of schema `video_processor_secured_standalone` to version 22.3 failed! Please restore backups and roll back database and code!
  152. :flywayMigrate FAILED
  153. :flywayMigrate (Thread[main,5,main]) completed. Took 2 mins 31.236 secs.
  154.  
  155. FAILURE: Build failed with an exception.
  156.  
  157. * What went wrong:
  158. Execution failed for task ':flywayMigrate'.
  159. > Error occurred while executing flywayMigrate
  160.  
  161. Migration PV-22.3-acl-migration-oid-with-location-as-parent.sql failed
  162. ----------------------------------------------------------------------
  163. SQL State : 42S22
  164. Error Code : 1054
  165. Message : Unknown column 'entity.locatlocationion_id' in 'on clause'
  166. Location : db/migration/PV-22.3-acl-migration-oid-with-location-as-parent.sql (/var/lib/jenkins/workspace/vps-db-migrate-develop/gradle_build/resources/main/db/migration/PV-22.3-acl-migration-oid-with-location-as-parent.sql)
  167. Line : 204
  168. Statement : INSERT INTO `acl_object_identity`(`object_id_class`, `object_id_identity`, `parent_object`, `entries_inheriting`)
  169. SELECT class.id, entity.id, parent.id, 1 FROM `acl_class` AS class, `irw_sessions` AS entity
  170. INNER JOIN `acl_object_identity` AS parent
  171. ON parent.object_id_identity=entity.locatlocationion_id
  172. AND parent.object_id_class=(SELECT location.id FROM `acl_class` AS location
  173. WHERE location.class='com.irewind.processor.app.domain.jpa.Location')
  174. WHERE class.class = 'com.irewind.processor.app.domain.jpa.Session'
  175.  
  176. Unknown column 'entity.locatlocationion_id' in 'on clause'
  177.  
  178. * Try:
  179. Run with --stacktrace option to get the stack trace. Run with --debug option to get more log output.
  180.  
  181. BUILD FAILED
  182.  
  183. Total time: 2 mins 36.651 secs
  184. Stopped 0 compiler daemon(s).
  185. Build step 'Execute shell' marked build as failure
  186. Sending e-mails to: dragos.repta@dc-tech.ro micu.adrian@dc-tech.ro
  187. Notifying upstream projects of job completion
  188. Finished: FAILURE
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement