public GitlabBuildVariable updateBuildVariable ( Integer projectId , String key , String newValue ) throws IOException { String tailUrl = GitlabProject . URL + "/" + projectId + GitlabBuildVariable . URL + "/" + key ; GitlabHTTPRequestor requestor = retrieve ( ) . method ( PUT ) ; if ( newValue != null ) { requestor = requestor . with ( "value" , newValue ) ; } return requestor . to ( tailUrl , GitlabBuildVariable . class ) ; }
Updates an existing variable .