8aa92e2294f757f44c7241be0d7efc9326839c88,src/python/pants/backend/jvm/tasks/jar_publish.py,JarPublish,execute,#JarPublish#,602
Before Change
// Remote exceptions probably indicate network or configuration issues, so
// we"ll let them propagate
try:
self.scm.refresh(leave_clean=True)
except Scm.LocalException as local_exception:
exc = traceback.format_exc(scm_exception)
self.context.log.debug("SCM exception while pushing: %s" % exc)
raise local_exception
After Change
else:
self.publish(ivyxml, jar=jar, entry=newentry, repo=repo, published=published)
if self.commit:
org = jar.org
name = jar.name
rev = newentry.version().version()
coord = coordinate(org, name, rev)
pushdb.dump(dbfile)
self.publish_pushdb_changes_to_remote_scm(
pushdb_file=dbfile,
coordinate=coord,
tag_name="{org}-{name}-{rev}".format(org=org, name=name, rev=rev),
tag_message="Publish of {coordinate} initiated by {user} {cause}".format(
coordinate=coord,
user=getpass.getuser(),
cause="with forced revision" if (org, name) in self.overrides else "(autoinc)"
)
)
def artifact_path(self, jar, version, name=None, suffix="", extension="jar", artifact_ext=""):
return os.path.join(self.workdir, jar.org, jar.name + artifact_ext,
"%s%s-%s%s.%s" % ((name or jar.name),
artifact_ext if name != "ivy" else "",
In pattern: SUPERPATTERN
Frequency: 3
Non-data size: 3
Instances
Project Name: pantsbuild/pants
Commit Name: 8aa92e2294f757f44c7241be0d7efc9326839c88
Time: 2015-03-18
Author: nhoward@twopensource.com
File Name: src/python/pants/backend/jvm/tasks/jar_publish.py
Class Name: JarPublish
Method Name: execute
Project Name: home-assistant/home-assistant
Commit Name: 665436cd910035b25805fa62b63f357c6eeef37e
Time: 2015-11-10
Author: leoc.git@gmail.com
File Name: homeassistant/components/light/zwave.py
Class Name: ZwaveDimmer
Method Name: _value_changed
Project Name: GoogleCloudPlatform/professional-services
Commit Name: 6bdb41abf5f4b2bbc821418f566549d2df025799
Time: 2018-09-19
Author: ocervello@google.com
File Name: infrastructure/gsuite-exporter/gsuite_exporter/auth.py
Class Name:
Method Name: build_service