Skip to main content

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index] [List Home]
Re: [jakartaee-spec-project-leads] Running through CTS pipeline job setup

I added the cat of the ts.jte as suggested by ScottM and it is showing that javaee.home= is empty. Looking at the ts.jte configuartion job, this looks like it is trying to only setup the web.home:

stage('Configure the ts.jte') { sh '''#!/bin/bash -ex sed -i '$ a impl\\.vi=glassfish' ts.jte sed -i "$ a web\\.home=\$(echo \${SERVER_HOME} | sed -e 's/\\\\/\\\\\\\\/g; s/\\//\\\\\\//g;')" ts.jte sed -i "s/^impl\\.vi\\.deploy\\.dir=/$(echo impl\\.vi\\.deploy\\.dir=\\${web.home}/domains/domain1/autodeploy | sed -e 's/\\\\/\\\\\\\\/g; s/\\//\\\\\\//g;')/g" ts.jte sed -i 's/^harness\\.log\\.traceflag=false/harness\\.log\\.traceflag=true/g' ts.jte sed -i 's/^webServerHost=/webServerHost=localhost/g' ts.jte sed -i 's/^webServerPort=/webServerPort=8080/g' ts.jte sed -i "s/^work\\.dir=\\/tmp\\/JTwork/$(echo work\\.dir=${HARNESS_WORK_DIR} | sed -e 's/\\\\/\\\\\\\\/g; s/\\//\\\\\\//g;')/g" ts.jte sed -i "s/^report\\.dir=\\/tmp\\/JTreport/$(echo report\\.dir=${HARNESS_REPORT_DIR} | sed -e 's/\\\\/\\\\\\\\/g; s/\\//\\\\\\//g;')/g" ts.jte sed -i "s/^jsonb\\.classes=/$(echo jsonb\\.classes=${JARS_ON_CP} | sed -e 's/\\\\/\\\\\\\\/g; s/\\//\\\\\\//g;')/g" ts.jte ''' }

It I look at the base https://github.com/eclipse-ee4j/jakartaee-tck/blob/master/install/jsonb/bin/ts.jte it does not contain a javaee.home, so it looks like sample ts.jte pipeline script from the jsonb probject is not applicable for the CTS.

Looks like a sample pipeline for the CTS for both configuring ts.jte and the run could be useful. Are there any in the https://github.com/eclipse-ee4j/jakartaee-tck repo?



On Jul 17, 2019, at 5:07 PM, Bill Shannon <bill.shannon@xxxxxxxxxx> wrote:

I didn't look at this in detail but from the error it looks like there's a "GlassFish home" setting that's missing somewhere.

Scott Stark wrote on 7/17/19 3:08 PM:
I’m going through setting up the pipeline jobs described on this page:
https://wiki.eclipse.org/TCK:Build_From_Jakarta_EE_TCK_Repo_And_Run


I have a test2 job there that creates a GF implementation with the replaced jakarta.management.j2ee-api.jar coming from the Management-API_EE4J_8_build job

I have a test2_jte job that creates a ts.jte that is a copy of https://wiki.eclipse.org/TCK:ts_jte_pipeline that only updates env.deliverabledir=jakartaee” 

I have a test3 job that is a copy of https://wiki.eclipse.org/TCK:TCK_run_pipeline that updates only these settings:

    // Job that created the API artifact
    def GF_BUILD_JOB = "jenkins://./test2"
    def TS_JTE_BUILD_JOB = "jenkins://./test2_jte"
    def API_JAR_NAME="jakarta.management.j2ee-api.jar"
    
    //TCK properties
    env.deliverabledir="jakartaee"


The Management-API_EE4J_8_build, test2 and test2_jte jobs run successfully, but the test3 tck run job is failing when it gets to the “Configure TCK” stage with the final console log output being:

copy.cts.ext.jars:
     [copy] Copying 1 file to /domains/domain1/lib/ext
Attempt to copy /home/jenkins/workspace/test3/jakartaeetck/lib/cts.jar to /domains/domain1/lib/ext/cts.jar using NIO Channels failed due to 'failed to create the parent directory for /domains/domain1/lib/ext/cts.jar'.  Falling back to streams.

BUILD FAILED
/home/jenkins/workspace/test3/jakartaeetck/bin/build.xml:520: The following error occurred while executing this line:
/home/jenkins/workspace/test3/jakartaeetck/bin/xml/impl/glassfish/javaee_vi.xml:296: Failed to copy /home/jenkins/workspace/test3/jakartaeetck/lib/cts.jar to /domains/domain1/lib/ext/cts.jar due to java.io.FileNotFoundException /domains/domain1/lib/ext/cts.jar (No such file or directory)


Is there a problem with the ts.jte configuration?

I don’t seem to have access to any of the projects that have a CTS run pipeline setup. Is the https://wiki.eclipse.org/TCK:TCK_run_pipeline example based on jsonb usable as a baseline for running the CTS?



_______________________________________________
jakartaee-spec-project-leads mailing list
jakartaee-spec-project-leads@xxxxxxxxxxx
To change your delivery options, retrieve your password, or unsubscribe from this list, visit
https://dev.eclipse.org/mailman/listinfo/jakartaee-spec-project-leads



Back to the top