All Downloads are FREE. Search and download functionalities are using the official Maven repository.

io.github.devsecops.engine.domain.sonar.instructions.SonarAnalysisInstruction Maven / Gradle / Ivy

There is a newer version: 3.4.0
Show newest version
package io.github.devsecops.engine.domain.sonar.instructions;

import io.github.devsecops.engine.core.contract.Instruction;
import lombok.AllArgsConstructor;
import lombok.Builder;

@Builder
@AllArgsConstructor
public class SonarAnalysisInstruction implements Instruction {

    private static final String COMMAND = "mvn clean install sonar:sonar " +
            "-Dsonar.host.url=%s " +
            "-Dsonar.login=%s " +
            "-Dsonar.projectKey=%s";

    private String sonarUrl;
    private String loginKey;
    private String projectKey;

    @Override
    public String getCmd() {
        return String.format(COMMAND, sonarUrl, loginKey, projectKey);
    }

}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy