젠킨스 용 새 플러그인을 작성 중입니다. 요구 사항 중 하나는 생성 된 파일을 업로드하여 실행하는 것입니다. 파일이 마스터에 있지만 slave 에이전트 (Jenkins 노드)에있는 경우에는 PERFORM에 제출할 수 있습니다. 오류 : 파일을 찾을 수 없습니다. FilePath를 사용해 보았습니다. 클라이언트가 마스터에서 만들어 졌기 때문에 이것이 의심 스럽습니다.젠킨스 노드에서 수행 할 파일을 체크 인 할 수 없습니다.
IOptionsServer srvr = ServerFactory.getOptionsServer("p4java://" + Port, null);
srvr.connect();
srvr.setUserName(User);
srvr.login(Password);
IClient client = new Client(srvr);
client.setName(tmpClientName);
client.setRoot(source.getRemote());
client.setOwnerName(p4User);
client.setServer(srvr);
client.setStream("StreamName");
ClientView mapping = new ClientView();
mapping.addEntry(new ClientView.ClientViewMapping(0,destination, "//" + tmpClientName + "/" + source.getName()));
client.setClientView(mapping);
try{
srvr.createClient(client);
srvr.setCurrentClient(client);
}
사람이 노드에서 클라이언트를 만드는 방법으로 도와 드릴까요 : 여기 코드는? 또는 다른 통찰력?
일부 코드로 시작하십시오. – sphinks