I can't seem to find a way to get the plan key from prepareConfigObject:
public void prepareConfigObject(@NotNull BuildConfiguration buildConfiguration) {
}
I need to store specific configuration items for a repository plugin I'm creating per plan. It's unlikely the same repo settings will be used for every plan.
What I actually need to store is a configuration file per plan. This has to be done as a file and can't be done using the configuration.setProperty mechanisms. I've tried getting the base working directory, but that only takes me to the build-dir directory:
File parentDirectoryFile=this.buildDirectoryManager.getBaseBuildWorkingDirectory();
String parentDirectory=parentDirectoryFile.getAbsolutePath();
String workingDirectory=parentDirectory+File.separator+this.getShortKey();
File f = new File(workingDirectory+"/config.txt");
I need access to the plan directories under build-dir so I can store settings per plan. I don't know, maybe I'm going about this the wrong way. Any input is greatly appreciated.