add waitForArtifactory method