public List < GitlabBuildVariable > getBuildVariables ( Integer projectId ) throws IOException { String tailUrl = GitlabProject . URL + "/" + projectId + GitlabBuildVariable . URL ; GitlabBuildVariable [ ] variables = retrieve ( ) . to ( tailUrl , GitlabBuildVariable [ ] . class ) ; return Arrays . asList ( variables ) ; }
Gets build variables associated with a project .