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

io.github.devsecops.engine.domain.git.instructions.GitPomCommitInstruction Maven / Gradle / Ivy

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

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

@Builder
@AllArgsConstructor
public class GitPomCommitInstruction implements Instruction {

    private static final String CMD =
            "git add %s && " +
            "git checkout . && " +
            "git checkout %s && " +
            "git commit -m \"%s\"";

    private static final String POM_FILE = "pom.xml";
    private static final String COMMIT_MESSAGE = "Increasing version post release";
    private static final String GIT_BRANCH = "develop";

    @Override
    public String getCmd() {
        return String.format(CMD, POM_FILE, GIT_BRANCH, COMMIT_MESSAGE);
    }
}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy