{"action":"created","comment":{"url":"https://api.github.com/repos/CloudSlang/cloud-slang-content/pulls/comments/33452201","id":33452201,"diff_hunk":"@@ -0,0 +1,51 @@\n+#   (c) Copyright 2014 Hewlett-Packard Development Company, L.P.\n+#   All rights reserved. This program and the accompanying materials\n+#   are made available under the terms of the Apache License v2.0 which accompany this distribution.\n+#\n+#   The Apache License is available at\n+#   http://www.apache.org/licenses/LICENSE-2.0\n+#\n+####################################################\n+# Schedules Jenkins job to be built.\n+#\n+# Prerequisites: jenkinsapi Python module\n+#\n+# Inputs:\n+#   - url - URL to Jenkins\n+#   - job_name - name of job to build\n+# Outputs:\n+#   - result_message - operation results\n+# Results:\n+#   - SUCCESS - return code is 0\n+#   - FAILURE - otherwise\n+####################################################\n+\n+namespace: io.cloudslang.jenkins\n+\n+operation:\n+  name: invoke_job\n+  inputs:\n+    - url\n+    - job_name\n+  action:\n+    python_script: |\n+      try:\n+        from jenkinsapi.jenkins import Jenkins\n+        j = Jenkins(url, '', '')\n+\n+        job = j.get_job(job_name)\n+        job.invoke()\n+\n+        return_code = '0'\n+        result_message = 'Success'\n+      except:\n+        import sys","path":"content/io/cloudslang/jenkins/invoke_job.sl","position":42,"original_position":42,"commit_id":"9aa1c877e7ddcb127b4bef84eadcee4bb7dbf5d4","original_commit_id":"9aa1c877e7ddcb127b4bef84eadcee4bb7dbf5d4","user":{"login":"tudorlesan","id":8058958,"avatar_url":"https://avatars.githubusercontent.com/u/8058958?v=3","gravatar_id":"","url":"https://api.github.com/users/tudorlesan","html_url":"https://github.com/tudorlesan","followers_url":"https://api.github.com/users/tudorlesan/followers","following_url":"https://api.github.com/users/tudorlesan/following{/other_user}","gists_url":"https://api.github.com/users/tudorlesan/gists{/gist_id}","starred_url":"https://api.github.com/users/tudorlesan/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/tudorlesan/subscriptions","organizations_url":"https://api.github.com/users/tudorlesan/orgs","repos_url":"https://api.github.com/users/tudorlesan/repos","events_url":"https://api.github.com/users/tudorlesan/events{/privacy}","received_events_url":"https://api.github.com/users/tudorlesan/received_events","type":"User","site_admin":false},"body":"I used it to print errors but not anymore and I forgot about it. I can delete it or I can put the error inside an error_message outputs. Whichever you preffer","created_at":"2015-06-29T10:44:21Z","updated_at":"2015-06-29T10:44:21Z","html_url":"https://github.com/CloudSlang/cloud-slang-content/pull/213#discussion_r33452201","pull_request_url":"https://api.github.com/repos/CloudSlang/cloud-slang-content/pulls/213","_links":{"self":{"href":"https://api.github.com/repos/CloudSlang/cloud-slang-content/pulls/comments/33452201"},"html":{"href":"https://github.com/CloudSlang/cloud-slang-content/pull/213#discussion_r33452201"},"pull_request":{"href":"https://api.github.com/repos/CloudSlang/cloud-slang-content/pulls/213"}}},"pull_request":{"url":"https://api.github.com/repos/CloudSlang/cloud-slang-content/pulls/213","id":38655396,"html_url":"https://github.com/CloudSlang/cloud-slang-content/pull/213","diff_url":"https://github.com/CloudSlang/cloud-slang-content/pull/213.diff","patch_url":"https://github.com/CloudSlang/cloud-slang-content/pull/213.patch","issue_url":"https://api.github.com/repos/CloudSlang/cloud-slang-content/issues/213","number":213,"state":"open","locked":false,"title":"Jenkins get last buildnumber test","user":{"login":"tudorlesan","id":8058958,"avatar_url":"https://avatars.githubusercontent.com/u/8058958?v=3","gravatar_id":"","url":"https://api.github.com/users/tudorlesan","html_url":"https://github.com/tudorlesan","followers_url":"https://api.github.com/users/tudorlesan/followers","following_url":"https://api.github.com/users/tudorlesan/following{/other_user}","gists_url":"https://api.github.com/users/tudorlesan/gists{/gist_id}","starred_url":"https://api.github.com/users/tudorlesan/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/tudorlesan/subscriptions","organizations_url":"https://api.github.com/users/tudorlesan/orgs","repos_url":"https://api.github.com/users/tudorlesan/repos","events_url":"https://api.github.com/users/tudorlesan/events{/privacy}","received_events_url":"https://api.github.com/users/tudorlesan/received_events","type":"User","site_admin":false},"body":"","created_at":"2015-06-26T14:36:45Z","updated_at":"2015-06-29T10:44:21Z","closed_at":null,"merged_at":null,"merge_commit_sha":"71b47296239fe87633af264bf1b419b187f3b62d","assignee":{"login":"orius123","id":4418018,"avatar_url":"https://avatars.githubusercontent.com/u/4418018?v=3","gravatar_id":"","url":"https://api.github.com/users/orius123","html_url":"https://github.com/orius123","followers_url":"https://api.github.com/users/orius123/followers","following_url":"https://api.github.com/users/orius123/following{/other_user}","gists_url":"https://api.github.com/users/orius123/gists{/gist_id}","starred_url":"https://api.github.com/users/orius123/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/orius123/subscriptions","organizations_url":"https://api.github.com/users/orius123/orgs","repos_url":"https://api.github.com/users/orius123/repos","events_url":"https://api.github.com/users/orius123/events{/privacy}","received_events_url":"https://api.github.com/users/orius123/received_events","type":"User","site_admin":false},"milestone":{"url":"https://api.github.com/repos/CloudSlang/cloud-slang-content/milestones/7","html_url":"https://github.com/CloudSlang/cloud-slang-content/milestones/0.8%20-%20sprint%206","labels_url":"https://api.github.com/repos/CloudSlang/cloud-slang-content/milestones/7/labels","id":1115261,"number":7,"title":"0.8 - sprint 6","description":"","creator":{"login":"oritstone","id":7547370,"avatar_url":"https://avatars.githubusercontent.com/u/7547370?v=3","gravatar_id":"","url":"https://api.github.com/users/oritstone","html_url":"https://github.com/oritstone","followers_url":"https://api.github.com/users/oritstone/followers","following_url":"https://api.github.com/users/oritstone/following{/other_user}","gists_url":"https://api.github.com/users/oritstone/gists{/gist_id}","starred_url":"https://api.github.com/users/oritstone/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/oritstone/subscriptions","organizations_url":"https://api.github.com/users/oritstone/orgs","repos_url":"https://api.github.com/users/oritstone/repos","events_url":"https://api.github.com/users/oritstone/events{/privacy}","received_events_url":"https://api.github.com/users/oritstone/received_events","type":"User","site_admin":false},"open_issues":10,"closed_issues":16,"state":"open","created_at":"2015-05-18T10:04:19Z","updated_at":"2015-06-29T09:07:24Z","due_on":"2015-07-09T21:00:00Z","closed_at":null},"commits_url":"https://api.github.com/repos/CloudSlang/cloud-slang-content/pulls/213/commits","review_comments_url":"https://api.github.com/repos/CloudSlang/cloud-slang-content/pulls/213/comments","review_comment_url":"https://api.github.com/repos/CloudSlang/cloud-slang-content/pulls/comments{/number}","comments_url":"https://api.github.com/repos/CloudSlang/cloud-slang-content/issues/213/comments","statuses_url":"https://api.github.com/repos/CloudSlang/cloud-slang-content/statuses/9aa1c877e7ddcb127b4bef84eadcee4bb7dbf5d4","head":{"label":"CloudSlang:jenkins_get_last_buildnumber_test","ref":"jenkins_get_last_buildnumber_test","sha":"9aa1c877e7ddcb127b4bef84eadcee4bb7dbf5d4","user":{"login":"CloudSlang","id":10261505,"avatar_url":"https://avatars.githubusercontent.com/u/10261505?v=3","gravatar_id":"","url":"https://api.github.com/users/CloudSlang","html_url":"https://github.com/CloudSlang","followers_url":"https://api.github.com/users/CloudSlang/followers","following_url":"https://api.github.com/users/CloudSlang/following{/other_user}","gists_url":"https://api.github.com/users/CloudSlang/gists{/gist_id}","starred_url":"https://api.github.com/users/CloudSlang/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/CloudSlang/subscriptions","organizations_url":"https://api.github.com/users/CloudSlang/orgs","repos_url":"https://api.github.com/users/CloudSlang/repos","events_url":"https://api.github.com/users/CloudSlang/events{/privacy}","received_events_url":"https://api.github.com/users/CloudSlang/received_events","type":"Organization","site_admin":false},"repo":{"id":28634263,"name":"cloud-slang-content","full_name":"CloudSlang/cloud-slang-content","owner":{"login":"CloudSlang","id":10261505,"avatar_url":"https://avatars.githubusercontent.com/u/10261505?v=3","gravatar_id":"","url":"https://api.github.com/users/CloudSlang","html_url":"https://github.com/CloudSlang","followers_url":"https://api.github.com/users/CloudSlang/followers","following_url":"https://api.github.com/users/CloudSlang/following{/other_user}","gists_url":"https://api.github.com/users/CloudSlang/gists{/gist_id}","starred_url":"https://api.github.com/users/CloudSlang/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/CloudSlang/subscriptions","organizations_url":"https://api.github.com/users/CloudSlang/orgs","repos_url":"https://api.github.com/users/CloudSlang/repos","events_url":"https://api.github.com/users/CloudSlang/events{/privacy}","received_events_url":"https://api.github.com/users/CloudSlang/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/CloudSlang/cloud-slang-content","description":"Ready-Made CloudSlang Flows and Operations","fork":false,"url":"https://api.github.com/repos/CloudSlang/cloud-slang-content","forks_url":"https://api.github.com/repos/CloudSlang/cloud-slang-content/forks","keys_url":"https://api.github.com/repos/CloudSlang/cloud-slang-content/keys{/key_id}","collaborators_url":"https://api.github.com/repos/CloudSlang/cloud-slang-content/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/CloudSlang/cloud-slang-content/teams","hooks_url":"https://api.github.com/repos/CloudSlang/cloud-slang-content/hooks","issue_events_url":"https://api.github.com/repos/CloudSlang/cloud-slang-content/issues/events{/number}","events_url":"https://api.github.com/repos/CloudSlang/cloud-slang-content/events","assignees_url":"https://api.github.com/repos/CloudSlang/cloud-slang-content/assignees{/user}","branches_url":"https://api.github.com/repos/CloudSlang/cloud-slang-content/branches{/branch}","tags_url":"https://api.github.com/repos/CloudSlang/cloud-slang-content/tags","blobs_url":"https://api.github.com/repos/CloudSlang/cloud-slang-content/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/CloudSlang/cloud-slang-content/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/CloudSlang/cloud-slang-content/git/refs{/sha}","trees_url":"https://api.github.com/repos/CloudSlang/cloud-slang-content/git/trees{/sha}","statuses_url":"https://api.github.com/repos/CloudSlang/cloud-slang-content/statuses/{sha}","languages_url":"https://api.github.com/repos/CloudSlang/cloud-slang-content/languages","stargazers_url":"https://api.github.com/repos/CloudSlang/cloud-slang-content/stargazers","contributors_url":"https://api.github.com/repos/CloudSlang/cloud-slang-content/contributors","subscribers_url":"https://api.github.com/repos/CloudSlang/cloud-slang-content/subscribers","subscription_url":"https://api.github.com/repos/CloudSlang/cloud-slang-content/subscription","commits_url":"https://api.github.com/repos/CloudSlang/cloud-slang-content/commits{/sha}","git_commits_url":"https://api.github.com/repos/CloudSlang/cloud-slang-content/git/commits{/sha}","comments_url":"https://api.github.com/repos/CloudSlang/cloud-slang-content/comments{/number}","issue_comment_url":"https://api.github.com/repos/CloudSlang/cloud-slang-content/issues/comments{/number}","contents_url":"https://api.github.com/repos/CloudSlang/cloud-slang-content/contents/{+path}","compare_url":"https://api.github.com/repos/CloudSlang/cloud-slang-content/compare/{base}...{head}","merges_url":"https://api.github.com/repos/CloudSlang/cloud-slang-content/merges","archive_url":"https://api.github.com/repos/CloudSlang/cloud-slang-content/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/CloudSlang/cloud-slang-content/downloads","issues_url":"https://api.github.com/repos/CloudSlang/cloud-slang-content/issues{/number}","pulls_url":"https://api.github.com/repos/CloudSlang/cloud-slang-content/pulls{/number}","milestones_url":"https://api.github.com/repos/CloudSlang/cloud-slang-content/milestones{/number}","notifications_url":"https://api.github.com/repos/CloudSlang/cloud-slang-content/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/CloudSlang/cloud-slang-content/labels{/name}","releases_url":"https://api.github.com/repos/CloudSlang/cloud-slang-content/releases{/id}","created_at":"2014-12-30T14:47:38Z","updated_at":"2015-06-21T06:33:49Z","pushed_at":"2015-06-29T10:43:46Z","git_url":"git://github.com/CloudSlang/cloud-slang-content.git","ssh_url":"git@github.com:CloudSlang/cloud-slang-content.git","clone_url":"https://github.com/CloudSlang/cloud-slang-content.git","svn_url":"https://github.com/CloudSlang/cloud-slang-content","homepage":"http://www.cloudslang.io/","size":5120,"stargazers_count":14,"watchers_count":14,"language":"Slash","has_issues":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":11,"mirror_url":null,"open_issues_count":29,"forks":11,"open_issues":29,"watchers":14,"default_branch":"master"}},"base":{"label":"CloudSlang:master","ref":"master","sha":"0be93ab3ccd38a237ecd4f41bd9c896b720757b5","user":{"login":"CloudSlang","id":10261505,"avatar_url":"https://avatars.githubusercontent.com/u/10261505?v=3","gravatar_id":"","url":"https://api.github.com/users/CloudSlang","html_url":"https://github.com/CloudSlang","followers_url":"https://api.github.com/users/CloudSlang/followers","following_url":"https://api.github.com/users/CloudSlang/following{/other_user}","gists_url":"https://api.github.com/users/CloudSlang/gists{/gist_id}","starred_url":"https://api.github.com/users/CloudSlang/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/CloudSlang/subscriptions","organizations_url":"https://api.github.com/users/CloudSlang/orgs","repos_url":"https://api.github.com/users/CloudSlang/repos","events_url":"https://api.github.com/users/CloudSlang/events{/privacy}","received_events_url":"https://api.github.com/users/CloudSlang/received_events","type":"Organization","site_admin":false},"repo":{"id":28634263,"name":"cloud-slang-content","full_name":"CloudSlang/cloud-slang-content","owner":{"login":"CloudSlang","id":10261505,"avatar_url":"https://avatars.githubusercontent.com/u/10261505?v=3","gravatar_id":"","url":"https://api.github.com/users/CloudSlang","html_url":"https://github.com/CloudSlang","followers_url":"https://api.github.com/users/CloudSlang/followers","following_url":"https://api.github.com/users/CloudSlang/following{/other_user}","gists_url":"https://api.github.com/users/CloudSlang/gists{/gist_id}","starred_url":"https://api.github.com/users/CloudSlang/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/CloudSlang/subscriptions","organizations_url":"https://api.github.com/users/CloudSlang/orgs","repos_url":"https://api.github.com/users/CloudSlang/repos","events_url":"https://api.github.com/users/CloudSlang/events{/privacy}","received_events_url":"https://api.github.com/users/CloudSlang/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/CloudSlang/cloud-slang-content","description":"Ready-Made CloudSlang Flows and Operations","fork":false,"url":"https://api.github.com/repos/CloudSlang/cloud-slang-content","forks_url":"https://api.github.com/repos/CloudSlang/cloud-slang-content/forks","keys_url":"https://api.github.com/repos/CloudSlang/cloud-slang-content/keys{/key_id}","collaborators_url":"https://api.github.com/repos/CloudSlang/cloud-slang-content/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/CloudSlang/cloud-slang-content/teams","hooks_url":"https://api.github.com/repos/CloudSlang/cloud-slang-content/hooks","issue_events_url":"https://api.github.com/repos/CloudSlang/cloud-slang-content/issues/events{/number}","events_url":"https://api.github.com/repos/CloudSlang/cloud-slang-content/events","assignees_url":"https://api.github.com/repos/CloudSlang/cloud-slang-content/assignees{/user}","branches_url":"https://api.github.com/repos/CloudSlang/cloud-slang-content/branches{/branch}","tags_url":"https://api.github.com/repos/CloudSlang/cloud-slang-content/tags","blobs_url":"https://api.github.com/repos/CloudSlang/cloud-slang-content/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/CloudSlang/cloud-slang-content/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/CloudSlang/cloud-slang-content/git/refs{/sha}","trees_url":"https://api.github.com/repos/CloudSlang/cloud-slang-content/git/trees{/sha}","statuses_url":"https://api.github.com/repos/CloudSlang/cloud-slang-content/statuses/{sha}","languages_url":"https://api.github.com/repos/CloudSlang/cloud-slang-content/languages","stargazers_url":"https://api.github.com/repos/CloudSlang/cloud-slang-content/stargazers","contributors_url":"https://api.github.com/repos/CloudSlang/cloud-slang-content/contributors","subscribers_url":"https://api.github.com/repos/CloudSlang/cloud-slang-content/subscribers","subscription_url":"https://api.github.com/repos/CloudSlang/cloud-slang-content/subscription","commits_url":"https://api.github.com/repos/CloudSlang/cloud-slang-content/commits{/sha}","git_commits_url":"https://api.github.com/repos/CloudSlang/cloud-slang-content/git/commits{/sha}","comments_url":"https://api.github.com/repos/CloudSlang/cloud-slang-content/comments{/number}","issue_comment_url":"https://api.github.com/repos/CloudSlang/cloud-slang-content/issues/comments{/number}","contents_url":"https://api.github.com/repos/CloudSlang/cloud-slang-content/contents/{+path}","compare_url":"https://api.github.com/repos/CloudSlang/cloud-slang-content/compare/{base}...{head}","merges_url":"https://api.github.com/repos/CloudSlang/cloud-slang-content/merges","archive_url":"https://api.github.com/repos/CloudSlang/cloud-slang-content/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/CloudSlang/cloud-slang-content/downloads","issues_url":"https://api.github.com/repos/CloudSlang/cloud-slang-content/issues{/number}","pulls_url":"https://api.github.com/repos/CloudSlang/cloud-slang-content/pulls{/number}","milestones_url":"https://api.github.com/repos/CloudSlang/cloud-slang-content/milestones{/number}","notifications_url":"https://api.github.com/repos/CloudSlang/cloud-slang-content/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/CloudSlang/cloud-slang-content/labels{/name}","releases_url":"https://api.github.com/repos/CloudSlang/cloud-slang-content/releases{/id}","created_at":"2014-12-30T14:47:38Z","updated_at":"2015-06-21T06:33:49Z","pushed_at":"2015-06-29T10:43:46Z","git_url":"git://github.com/CloudSlang/cloud-slang-content.git","ssh_url":"git@github.com:CloudSlang/cloud-slang-content.git","clone_url":"https://github.com/CloudSlang/cloud-slang-content.git","svn_url":"https://github.com/CloudSlang/cloud-slang-content","homepage":"http://www.cloudslang.io/","size":5120,"stargazers_count":14,"watchers_count":14,"language":"Slash","has_issues":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":11,"mirror_url":null,"open_issues_count":29,"forks":11,"open_issues":29,"watchers":14,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/CloudSlang/cloud-slang-content/pulls/213"},"html":{"href":"https://github.com/CloudSlang/cloud-slang-content/pull/213"},"issue":{"href":"https://api.github.com/repos/CloudSlang/cloud-slang-content/issues/213"},"comments":{"href":"https://api.github.com/repos/CloudSlang/cloud-slang-content/issues/213/comments"},"review_comments":{"href":"https://api.github.com/repos/CloudSlang/cloud-slang-content/pulls/213/comments"},"review_comment":{"href":"https://api.github.com/repos/CloudSlang/cloud-slang-content/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/CloudSlang/cloud-slang-content/pulls/213/commits"},"statuses":{"href":"https://api.github.com/repos/CloudSlang/cloud-slang-content/statuses/9aa1c877e7ddcb127b4bef84eadcee4bb7dbf5d4"}}}}