Preferred way to publish snapshots/releases to Artifactory?

In our company we solved that by using several jenkins build jobs for each project. Here is another thread about this: