>source

Github Repo에서 솔루션을 복제하고 빌드를 트리거하기 위해 Jenkins 설정을 수행했으며 솔루션은 여러 브라우저에서 병렬로 실행되어야합니다 (ANT 빌드를 사용하고 있습니다).

하지만 스크립트를 실행하려고 할 때 빌드를 트리거하지만 VM에서 솔루션을 복제 할 수 없어 오류가 발생합니다

Started by upstream project "HippoAutomationTests" build number 12
originally caused by:
 Started by user Andy Williams
[EnvInject] - Loading node environment variables.
Building on master in workspace /x01/builds/workspace/HippoAutomationTests/browser/Firefox
using credential b89b0ace-6852-43d4-83a7-83f3ba77a290
 > git rev-parse --is-inside-work-tree # timeout=10
Fetching changes from the remote Git repository
 > git config remote.origin.url https://bitbucket.org/kohler_source/hippoautomationtests.git # timeout=10
Fetching upstream changes from https://bitbucket.org/kohler_source/hippoautomationtests.git
 > git --version # timeout=10
using GIT_ASKPASS to set credentials Bitbucket Credentials
 > git fetch --tags --progress https://bitbucket.org/kohler_source/hippoautomationtests.git +refs/heads/*:refs/remotes/origin/*
Checking out Revision 104215052b7b4ae548eb2a4782bd9292bc93b95a (refs/remotes/origin/master)
 > git config core.sparsecheckout # timeout=10
 > git checkout -f 104215052b7b4ae548eb2a4782bd9292bc93b95a
Commit message: "Updating the solution"
 > git rev-list --no-walk 104215052b7b4ae548eb2a4782bd9292bc93b95a # timeout=10
[Firefox] $ /x01/jenkins/tools/hudson.tasks.Ant_AntInstallation/Ant_Installation/bin/ant -file build.xml -DGroup=HippoIndia -Dbrowser=Firefox -DURL=http://plumbingindia.kohler.acct.us.onehippo.com/ -DrealTimeReport=true -DrunParallel=methods -Dselenium.capture.path=/Test/build/test-output/new -Dtest.url=http://plumbingindia.kohler.acct.us.onehippo.com/ -DuseVideoCapture=false -DbuildName=Test -DdbMode=false -Dselenium.timeout=60000 -DlocalExecution=true -DthreadCount=1 -Dtest.browser=Firefox -Dpackages=com.tests.* -Dtest.browser.version=11.0 -DretryCount=0 -Dselenium.port=4444 -DdbUrl=localhost:3306/isaf -DshowVideosOnPass=false -DdataProviderThreadCount=20 -Dgroups=HippoIndia -DuseProxy=false -DdbUser=isaf_user -Dselenium.host=localhost [email protected] -DreportType=iwafreport build.config run.test
Buildfile: /x01/builds/workspace/HippoAutomationTests/browser/Firefox/build.xml
build.config:
     [copy] Copying 1 file to /x01/builds/workspace/HippoAutomationTests/browser/Firefox
clean:
   [delete] Deleting directory /x01/builds/workspace/HippoAutomationTests/browser/Firefox/Test/build
init:
    [mkdir] Created dir: /x01/builds/workspace/HippoAutomationTests/browser/Firefox/Test/build
    [mkdir] Created dir: /x01/builds/workspace/HippoAutomationTests/browser/Firefox/Test/build/test-classes
    [mkdir] Created dir: /x01/builds/workspace/HippoAutomationTests/browser/Firefox/Test/build/test-output
compile:
    [javac] /x01/builds/workspace/HippoAutomationTests/browser/Firefox/build.xml:99: warning: 'includeantruntime' was not set, defaulting to build.sysclasspath=last; set to false for repeatable builds
    [javac] Compiling 18 source files to /x01/builds/workspace/HippoAutomationTests/browser/Firefox/Test/build/test-classes
    [javac] Note: Some input files use or override a deprecated API.
    [javac] Note: Recompile with -Xlint:deprecation for details.
run.test:
     [java] Error occurred during initialization of VM
     [java] Error opening zip file or JAR manifest missing : /x01/builds/workspace/HippoAutomationTests/browser/Firefox/lib\aspectjweaver.jar
     [java] agent library failed to init: instrument
     [java] Java Result: 1
BUILD SUCCESSFUL
Total time: 4 seconds
[htmlpublisher] Archiving HTML reports...
[htmlpublisher] Archiving at PROJECT level /x01/builds/workspace/HippoAutomationTests/browser/Firefox/Test/build/test-output/IwafReport to /x01/jenkins/jobs/HippoAutomationTests/configurations/axis-browser/Firefox/htmlreports/HTML_20Report
ERROR: Specified HTML directory '/x01/builds/workspace/HippoAutomationTests/browser/Firefox/Test/build/test-output/IwafReport' does not exist.
Build step 'Publish HTML reports' changed build result to FAILURE
TestNG Reports Processing: START
Looking for TestNG results report in workspace using pattern: **/testng-results.xml
testng-results.xml was last modified before this build started. Ignoring it.
testng-results.xml was last modified before this build started. Ignoring it.
Saving reports...
Found matching files but did not find any TestNG results.
Finished: FAILURE

문제를 해결하기위한 제안을 제공해주십시오.

  • 답변 # 1

    와이즈 비즈  오류 메시지에 따라 빌드 환경에서 JAR이 누락되었습니다 :

    와이즈 비즈 이 JAR이 존재하고 aspectjweaver.jar 를 사용하지 않는지 확인하십시오.  경로 구분자로.

    [java] Error occurred during initialization of VM [java] Error opening zip file or JAR manifest missing : /x01/builds/workspace/HippoAutomationTests/browser/Firefox/lib\aspectjweaver.jar

    [java] agent library failed to init: instrument

    [java] Java Result: 1

    여야합니다  나머지 길처럼.

    \

  • 이전 vba - Word 형광펜으로 Outlook에서 스크립트 실행
  • 다음 Android 스튜디오 불안정한 동작 및 성공적으로 빌드되지 않음