我试图在构建过程中将一些资源从一个点复制到另一个点。因此我使用 Apache Maven 资源插件。其实我排除了一些文件,我不需要。但我也想排除一个目录。我尝试了几种方法,但没有奏效。
<artifactId>maven-resources-plugin</artifactId>
<version>2.5</version>
<executions>
<execution>
<id>copy-client-product</id>
<phase>verify</phase>
<goals>
<goal>copy-resources</goal>
</goals>
<configuration>
<outputDirectory>${basedir}/target/pro/client</outputDirectory>
<resources>
<resource>
<directory>target\products\client\win32\win32\x86\</directory>
<excludes>
<exclude>p2</exclude>
<exclude>eclipsec.exe</exclude>
</excludes>
</resource>
</resources>
</configuration>
</execution>
</executions>
Run Code Online (Sandbox Code Playgroud)
在这个例子中,我试图排除文件夹“p2”。
<exclude>*/p2/**</exclude>
<exclude>p2/**</exclude>
<exclude>**/p2</exclude>
Run Code Online (Sandbox Code Playgroud)
也不行。
我们在同一个git存储库上有不同的Jenkins-Jobs,它们有不同的工件.几周之内一切都工作得很好.
但是,由于我们重新启动了服务器以进行更新,因此每个构建历史记录都显示相同的内容...此外,我们的仪表板显示了作业的错
http://www.picfront.org/d/8OC6(无法发布图片信誉限制原因)
就像你可以看到每个作业仍然有内置编号107,但只有主要工作是这个数字,其他工作是大约30到50 ...因此,有关构建的每个信息都有点不正确.
信息:
[编辑]
我也在Jenkins-Log中得到一些错误 -
24.09.2012 13:29:03 hudson.model.RunMap load
WARNUNG: multiple runs claiming to be #41; using run from C:\Jenkins...
Run Code Online (Sandbox Code Playgroud)
[EDIT2]
我发现当我添加一个新的FreeStyle作业时,它会在重启后显示其他作业的完整历史记录.