Skip to content

Build failed #2

Description

@fanyigle

Hello,instructor.
I followed the step on Ubuntu 18,with ant 1.10.5 and junit installed.
here is the output of " ls /usr/share/ant/lib"

ant-antlr.jar ant-commons-logging.jar ant-launcher.jar
ant-apache-bcel.jar ant-commons-net.jar ant-swing.jar
ant-apache-bsf.jar ant-javamail.jar ant-testutil.jar
ant-apache-log4j.jar ant-jdepend.jar ant-xz.jar
ant-apache-oro.jar ant-jmf.jar ant.jar
ant-apache-regexp.jar ant-jsch.jar junit.jar
ant-apache-resolver.jar ant-junit.jar
ant-apache-xalan2.jar ant-junit4.jar

But when I try to build ,it failed.Plz help troubleshoot,thanks. (following is the console output)
15:55:29 Started by user SF
15:55:29 Running as SYSTEM
15:55:29 Building in workspace /var/lib/jenkins/workspace/anttest/InAnt
15:55:29 No credentials specified
15:55:29 > git rev-parse --is-inside-work-tree # timeout=10
15:55:29 Fetching changes from the remote Git repository
15:55:29 > git config remote.origin.url https://github.com/darealmc/some_java.git # timeout=10
15:55:29 Fetching upstream changes from https://github.com/darealmc/some_java.git
15:55:29 > git --version # timeout=10
15:55:29 > git fetch --tags --progress -- https://github.com/darealmc/some_java.git +refs/heads/:refs/remotes/origin/ # timeout=10
15:55:31 > git rev-parse refs/remotes/origin/master^{commit} # timeout=10
15:55:31 > git rev-parse refs/remotes/origin/origin/master^{commit} # timeout=10
15:55:31 Checking out Revision 72e7208 (refs/remotes/origin/master)
15:55:31 > git config core.sparsecheckout # timeout=10
15:55:31 > git checkout -f 72e7208 # timeout=10
15:55:31 Commit message: "workkng the test method"
15:55:31 > git rev-list --no-walk 72e7208 # timeout=10
15:55:31 [InAnt] $ /usr/share/ant/bin/ant junit
15:55:33 Buildfile: /var/lib/jenkins/workspace/anttest/InAnt/build.xml
15:55:34
15:55:34 tcomp:
15:55:34 [javac] /var/lib/jenkins/workspace/anttest/InAnt/build.xml:13: warning: 'includeantruntime' was not set, defaulting to build.sysclasspath=last; set to false for repeatable builds
15:55:34 [javac] Compiling 1 source file to /var/lib/jenkins/workspace/anttest/InAnt/test
15:55:35 [javac] /var/lib/jenkins/workspace/anttest/InAnt/test/hellotest.java:15: error: ';' expected
15:55:35 [javac] string second="one"
15:55:35 [javac] ^
15:55:35 [javac] 1 error
15:55:35
15:55:35 BUILD FAILED
15:55:35 /var/lib/jenkins/workspace/anttest/InAnt/build.xml:13: Compile failed; see the compiler error output for details.
15:55:35
15:55:35 Total time: 2 seconds
15:55:35 Build step 'Invoke Ant' marked build as failure
15:55:35 Recording test results
15:55:35 Finished: FAILURE

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions