/** * Get list of all projects, including workflow job types * @param env Environment variables from which to expand project names; Might be {@code null}. * @param context * The container with which to resolve relative project names. * If the user has no {@link Item#READ} permission, the job won't be added to the list. */ public List<Job> getJobs(ItemGroup context, EnvVars env) { List<Job> projectList = new ArrayList<Job>(); projectList.addAll(readableItemsFromNameList(context, getProjects(env), Job.class)); return projectList; }
subProjectData.getFixed().addAll(readableItemsFromNameList(context.getParent(), projects, AbstractProject.class));
subProjectData.getTriggered().addAll(readableItemsFromNameList(build.getParent().getParent(), triggeredProjects, AbstractProject.class));