向声纳或詹金斯报告父版本的更新

时间:2021-01-07 11:27:14

标签: maven jenkins sonarqube versions-maven-plugin

当 Maven 构建的父版本不是最新发布版本时,版本插件 display-parent-updates 的目标是很好地报告它,但我想以某种方式报告:

  1. 使用 WARNING 或 UNSTABLE 状态标记构建(在 jenkins 中具有彩色视觉效果)
  2. 将此添加到 jacoco 报告中(不知道这是否可行,会很棒)-> 在声纳中可见
  3. 也许可以使用执行器插件(不知道这是否有帮助)

有什么建议吗?

1 个答案:

答案 0 :(得分:0)

                     Image(dateValues["thithi_ico"] as! String)
                    .resizable()
                    .frame(maxWidth: 50, maxHeight:50 )
                    .border(Color.gray, width:0.5)
                    .position(x:-93, y: 150)
  1. 使用带有自定义规则的强制插件

    公共类 MyCustomRule 实现 EnforcerRule2 {

    I achieved this in 2 steps : 
    
    1. Use of the following plugin 
    
    `<plugin>
            <groupId>org.codehaus.mojo</groupId>
            <artifactId>versions-maven-plugin</artifactId>
            <executions>
                <execution>
                    <id>display-dkv-boot-starter-parent-updates</id>
                    <phase>initialize</phase>
                    <goals>
                        <goal>display-parent-updates</goal>
                    </goals>
                    <configuration>
                        <allowSnapshots>true</allowSnapshots>
                    </configuration>
                </execution>
            </executions>
        </plugin>`