Apache Ivy:“条件不支持嵌套的”javaversion“元素。 “错误

问题描述 投票:0回答:1

我正在尝试配置一个Jenkins作业,该作业从GIT仓库编译Apache Ivy的代码。 (https://github.com/apache/ivy)。运行作业后我收到以下错误:

BUILD FAILED /var/lib/jenkins/workspace/apache-ivy/build.xml:28:condition不支持嵌套的“javaversion”元素。

build.xml的第28行

<condition property="java.sysprop.https.protocols" value="" else="TLSv1.2"> <javaversion atleast="1.8"/> </condition>

我已将全局配置设置为安装apache ivy 1.10.1以自动安装。

我有一个安装了openjdk-8-jdk的Ubuntu EC2实例。

jenkins
1个回答
1
投票

至少使用1.10.x版本的Ant。转到Manage Jenkins > Global Tool Configuration选项以设置名称和版本。另外,请确保您的构建看起来像belowenter image description here

© www.soinside.com 2019 - 2024. All rights reserved.