Skip to content
Permalink
Browse files
JENKINS-26805 Job not triggered after git merge
  • Loading branch information
fbelzunc committed Feb 5, 2015
1 parent 0f39f81 commit de63f6ca83b47b6068dd4a293e6c6a48c9684070
Showing 1 changed file with 0 additions and 6 deletions.
@@ -9,7 +9,6 @@
import hudson.scm.SCM;
import hudson.security.ACL;
import jenkins.model.Jenkins;
import net.sf.json.JSONArray;
import net.sf.json.JSONObject;
import org.acegisecurity.context.SecurityContext;
import org.acegisecurity.context.SecurityContextHolder;
@@ -106,11 +105,6 @@ private void processPayload(JSONObject payload) {
String url = payload.getString("canon_url") + repo.getString("absolute_url");
LOGGER.info("Received commit hook notification for "+repo);

JSONArray commits = payload.getJSONArray("commits");
int last = commits.size() - 1;
String sha1 = commits.getJSONObject(last).getString("raw_node");
String branch = commits.getJSONObject(last).getString("branch");

String scm = repo.getString("scm");
if ("git".equals(scm)) {
SecurityContext old = Jenkins.getInstance().getACL().impersonate(ACL.SYSTEM);

0 comments on commit de63f6c

Please sign in to comment.