2017-09-09 5 views
0

私はこのスキップJaCoCo実行:​​は/ var/libに/ジェンキンス/ワークスペース/ soapuiauto1/hdap-プロジェクト/タールのget/jacoco.exec

clean jacoco:prepare-agent install jacoco:report -DENVIRONMENT=localhost -X 
で次のことを実行していています私はジェンキンスサーバでこのポンポンを実行しています

のpom.xml

ファイルは、SOAPUI MavenプラグインとのMavenプロジェクトは、SoapUIproject.xml私は、私は次のエラーを取得しています自動SOAPUIテストを行うためにMavenのために取り付けられています。このプロジェクトに関連するすべてのstackoverflow答えを試してみてくださいウェブoughまだそれを取り除くカント:

[INFO] --- Mavenのインストール - プラグイン:2.4:[INFO] --- SOAPUI-のmaven-pluginの@(デフォルトインストール)をインストールしますインストール /var/lib/jenkins/workspace/soapuiauto1/hdap-project/target/soapui-maven-plugin-0.0.1-SNAPSHOT.jar 〜 /home/jboss/.m2/repository/com/smartbear/soapui /soapui-maven-plugin/0.0.1-SNAPSHOT/soapui-maven-plugin-0.0.1-SNAPSHOT.jar [DEBUG]トラッキングファイルの作成 /home/jboss/.m2/repository/com/smartbear/soapui/ soapui-maven-plugin/0.0.1-SNAPSHOT/_remote.repositories [INFO]インストール /var/lib/jenkins/workspace/soapuiauto1/hd ap-project/pom.xml〜 /home/jboss/.m2/repository/com/smartbear/soapui/soapui-maven-plugin/0.0.1-SNAPSHOT/soapui-maven-plugin-0.0.1-SNAPSHOT.pom [DEBUG]ライティング・トラッキング・ファイル[INFO]スキップJaCoCo実行に起因して 欠落している実行データ ファイル:/var/lib/jenkins/workspace/soapuiauto1/hdap-project/target/jacoco.exec

上流通知ジョブの完了 のプロジェクトは、通知に参加 "CauseAction http://maven.apache.org/xsd/maven-4.0.0.xsdが必要です> 4.0.0 com.smartbear.soapui SOAPUI-のmaven-pluginの 0.0.1-SNAPSHOT 5.3。 BADGER 偽ENVIRONMENT BADGER TURKEY 偽ENVIRONMENT TURKEY PANTHER 偽 ENVIRONMENT PANTHER QA6 偽 ENVIRONMENT QA6 QA7 偽 ENVIRONMENT QA7 QA8 偽 ENVIRONMENT QA8 smartbear - スウェーデン - プラグインのリポジトリ http://smartbearsoftware.com/repository/maven2/ Vonageの-M2-プラグインリポジトリ http://maven.dev.s.vonagenetworks.net:8080/nexus/content/repositories/Vonage-m2/

</pluginRepositories> 
    <repositories> 
    </repositories> 
    <build> 
     <plugins> 
      <plugin> 
       <groupId>com.smartbear.soapui</groupId> 
       <artifactId>soapui-maven-plugin</artifactId> 
       <version>${soapui.plugin.version}</version> 
       <dependencies> 
       <dependency> 
       <groupId>com.smartbear.soapui</groupId> 
       <artifactId>soapui</artifactId> 
       <version>${soapui.plugin.version}</version> 
       <exclusions> 
        <exclusion> 
         <groupId>javafx</groupId> 
         <artifactId>jfxrt</artifactId> 
        </exclusion> 
       </exclusions> 
      </dependency> 
        <dependency> 
         <groupId>org.reflections</groupId> 
         <artifactId>reflections</artifactId> 
         <version>0.9.10</version> 
        </dependency> 
        <dependency> 
         <groupId>org.postgresql</groupId> 
         <artifactId>postgresql</artifactId> 
         <version>9.3-1102-jdbc41</version> 
        </dependency> 
        <dependency> 
         <groupId>org.mongodb</groupId> 
         <artifactId>mongodb-driver</artifactId> 
         <version>3.3.0</version> 
        </dependency> 
        <dependency> 
         <groupId>org.apache.maven.plugins</groupId> 
         <artifactId>maven-surefire-plugin</artifactId> 
         <version>2.19.1</version> 
        </dependency> 
        <dependency> 
         <groupId>com.jgoodies</groupId> 
         <artifactId>jgoodies-forms</artifactId> 
         <version>1.6.0</version> 
        </dependency> 
        <dependency> 
         <groupId>com.vonage.asl</groupId> 
         <artifactId>unifiedServices</artifactId> 
         <version>2015.12.4-RELEASE</version> 
         <exclusions> 
          <exclusion> 
           <groupId>*</groupId> 
           <artifactId>*</artifactId> 
          </exclusion> 
         </exclusions> 
        </dependency> 
        <dependency> 
         <groupId>org.apache.commons</groupId> 
         <artifactId>commons-lang3</artifactId> 
         <version>3.3.2</version> 
        </dependency> 
        <dependency> 
         <groupId>junit</groupId> 
         <artifactId>junit</artifactId> 
         <version>4.11</version> 
        </dependency> 

       </dependencies> 
       <configuration> 
        <settingsFile>${basedir}/src/config/soapui-settings.xml</settingsFile> 
        <junitReport>true</junitReport> 
        <printReport>true</printReport> 

       </configuration> 
       <executions> 
        <execution> 
         <phase>integration-test</phase> 
         <goals> 
          <goal>test</goal> 
         </goals> 
         <configuration> 
          <trimStackTrace>false</trimStackTrace> 
          <testFailIgnore>true</testFailIgnore> 
          <outputFolder>${project.build.directory}/reports</outputFolder> 
          <projectFile>${basedir}/src/test/resources/HDAP-soapui-project.xml</projectFile> 
          <projectProperties> 
           <projectProperty>ENVIRONMENT=${ENVIRONMENT}</projectProperty> 
          </projectProperties> 
      <junitReport>true</junitReport> 
        <skip>${skipITs}</skip> 
        <coverage>${project.build.directory}/reports</coverage> 
         </configuration> 
      </execution> 
       </executions> 
      </plugin> 
     <plugin> 
       <groupId>org.jacoco</groupId> 
       <artifactId>jacoco-maven-plugin</artifactId> 
       <version>0.7.2.201409121644</version> 
       <!-- <configuration> 
        <destFile>${jacoco.reportPath}</destFile> 
        <dataFile>${jacoco.reportPath}</dataFile> 
        <outputDirectory>${project.reporting.outputDirectory}/jacoco-it</outputDirectory> 
        <classDumpDir>${project.reporting.outputDirectory}/jacoco-it/classes</classDumpDir> 
        <skip>${skipITs}</skip> 
      <output>file</output> 
       </configuration> --> 
       <executions> 
        <execution> 
         <id>jacoco-agent</id> 
         <phase>pre-integration-test</phase> 
         <goals> 
          <goal>prepare-agent</goal> 
         </goals> 
         <configuration> 
          <destFile>${project.build.directory}/coverage-reports/jacoco-it.exec</destFile> 
          <propertyName>jacoco.agent.itArgLine</propertyName> 
         </configuration> 
        </execution> 
        <execution> 
         <id>jacoco-report</id> 
         <phase>post-integration-test</phase> 
          <configuration> 
       <dataFile>${project.build.directory}/coverage-reports/jacoco.exec</dataFile> 
       <!-- Sets the output directory for the code coverage report. --> 
       <outputDirectory>${project.reporting.outputDirectory}/jacoco-out</outputDirectory> 
       </configuration> 

         <goals> 
          <!--<goal>dump</goal> --> 
          <goal>report</goal> 
         </goals> 
        </execution> 
       </executions> 
          <configuration> 
        <systemPropertyVariables> 
         <jacoco-agent.destFile>target/jacoco.exec</jacoco-agent.destFile> 
        </systemPropertyVariables> 
       </configuration> 
      </plugin> 
    <plugin> 
    <artifactId>maven-surefire-plugin</artifactId> 
    <version>2.15</version> 
    <executions> 
     <execution> 
      <id>default-test</id> 
      <phase>test</phase> 
      <goals> 
       <goal>test</goal> 
      </goals> 
     </execution> 
    </executions> 
</plugin> 
<plugin> 
    <groupId>org.apache.maven.plugins</groupId> 
    <artifactId>maven-failsafe-plugin</artifactId> 
    <version>2.15</version> 
    <executions> 
     <!-- 
      Ensures that both integration-test and verify goals of the Failsafe Maven 
      plugin are executed. 
     --> 
     <execution> 
      <id>integration-tests</id> 
      <goals> 
       <goal>integration-test</goal> 
       <goal>verify</goal> 
      </goals> 
      <configuration> 
       <!-- Sets the VM argument line used when integration tests are run. --> 
       <argLine>${jacoco.agent.itArgLine}</argLine> 

       <skipTests>${skip.integration.tests}</skipTests> 
      </configuration> 
     </execution> 
    </executions> 
</plugin> 
     </plugins> 
    </build> 
</project> 
+0

"ERROR"という単語はどこにも表示されません。 「実行データファイルがないためにJaCoCoの実行をスキップする:/var/lib/jenkins/workspace/soapuiauto1/hdap-project/target/jacoco.exec」を参照してください。 – mario

+0

はい私は質問を変更しましたありがとう –

答えて

0

明示的ジェンキンスで-DskipITs=falseランニングMavenを設定していますか?

+0

私はこのクリーンなjacocoをやっています:準備 - エージェントのインストールjacoco:レポート-DENVIRONMENT = localhost -X –

+0

それを追加してください。あなたの 'pom.xml'ファイルで、' skipITs'が 'true'の場合、統合テスト段階はスキップされます。 – mario

+0

まだ試したことがない同じ問題 –

関連する問題