Klasse AffectedFilesResolver
java.lang.Object
io.jenkins.plugins.analysis.core.util.AffectedFilesResolver
Copies all affected files that are referenced in at least one of the issues to Jenkins build folder. These files can
be inspected in the UI later on.
- Autor:
- Ullrich Hafner
-
Feldübersicht
Modifizierer und TypFeldBeschreibungstatic final String
Folder with the affected files within Jenkins' build results. -
Konstruktorübersicht
-
Methodenübersicht
Modifizierer und TypMethodeBeschreibungvoid
copyAffectedFilesToBuildFolder
(edu.hm.hafner.analysis.Report report, FilePath workspace, Set<String> permittedSourceDirectories, FilePath buildFolder) Copies all files with issues from the workspace to the build folder.static Path
Returns the affected file in Jenkins' build folder.static Path
getZipFile
(Run<?, ?> run, String fileName) Returns the affected file in Jenkins' build folder.static boolean
hasAffectedFile
(Run<?, ?> run, edu.hm.hafner.analysis.Issue issue) Returns whether the affected file in Jenkins' build folder does exist and is readable.
-
Felddetails
-
AFFECTED_FILES_FOLDER_NAME
Folder with the affected files within Jenkins' build results.- Siehe auch:
-
-
Konstruktordetails
-
AffectedFilesResolver
public AffectedFilesResolver()
-
-
Methodendetails
-
hasAffectedFile
Returns whether the affected file in Jenkins' build folder does exist and is readable.- Parameter:
run
- the run referencing the build folderissue
- the issue in the affected file- Gibt zurück:
- the file
-
getFile
Returns the affected file in Jenkins' build folder.- Parameter:
run
- the run referencing the build folderfileName
- the file name in the folder of affected files- Gibt zurück:
- the file
-
getZipFile
Returns the affected file in Jenkins' build folder.- Parameter:
run
- the run referencing the build folderfileName
- the file name in the folder of affected files- Gibt zurück:
- the file
-
copyAffectedFilesToBuildFolder
public void copyAffectedFilesToBuildFolder(edu.hm.hafner.analysis.Report report, FilePath workspace, Set<String> permittedSourceDirectories, FilePath buildFolder) throws InterruptedException Copies all files with issues from the workspace to the build folder.- Parameter:
report
- the issuesworkspace
- the workspace on the agentpermittedSourceDirectories
- additional permitted source code directoriesbuildFolder
- directory to store the copied files in- Löst aus:
InterruptedException
- if the user cancels the processing
-