{"release":{"tag":{"name":"gitee-1.1.3","path":"/oschina/Gitee-Jenkins-Plugin/tags/gitee-1.1.3","tree_path":"/oschina/Gitee-Jenkins-Plugin/tree/gitee-1.1.3","message":"[maven-release-plugin] copy for tag gitee-1.1.3","commit":{"id":"47b7de03789d72ecb5f1fdf48925004c15461eed","short_id":"47b7de0","title":"[maven-release-plugin] prepare release gitee-1.1.3","title_markdown":"[maven-release-plugin] prepare release gitee-1.1.3","description":"","description_markdown":"","message":"[maven-release-plugin] prepare release gitee-1.1.3\n","message_markdown":"[maven-release-plugin] prepare release gitee-1.1.3","detail_path":"/oschina/Gitee-Jenkins-Plugin/commit/47b7de03789d72ecb5f1fdf48925004c15461eed","commits_path":"/oschina/Gitee-Jenkins-Plugin/commits/47b7de03789d72ecb5f1fdf48925004c15461eed","tree_path":"/oschina/Gitee-Jenkins-Plugin/tree/47b7de03789d72ecb5f1fdf48925004c15461eed","author":{"name":"Yashin","email":"yashin.luo@foxmail.com","username":"yashin","user_path":"/yashin","enterprise_user_path":"/oschina/dashboard/members/yashin","image_path":"https://foruda.gitee.com/avatar/1676890385817125678/58426_yashin_1578915792.png!avatar30","is_gitee_user":true,"is_enterprise_user":true,"widget_url":""},"committer":{"name":"Yashin","email":"yashin.luo@foxmail.com","username":"yashin","user_path":"/yashin","enterprise_user_path":"/oschina/dashboard/members/yashin","image_path":"https://foruda.gitee.com/avatar/1676890385817125678/58426_yashin_1578915792.png!avatar30","is_gitee_user":true,"is_enterprise_user":true,"widget_url":""},"authored_date":"2018-08-16T15:30:44+08:00","committed_date":"2018-08-16T15:30:44+08:00","signature":null,"build_state":null},"archive_path":"/oschina/Gitee-Jenkins-Plugin/repository/archive/gitee-1.1.3","signature":null},"operating":{"edit":false,"download":true,"destroy":false,"enterprise_forbid_zip":false},"release":{"title":"gitee-jenkins-plugin-1.1.3","path":"/oschina/Gitee-Jenkins-Plugin/releases/tag/gitee-1.1.3","tag_path":"/oschina/Gitee-Jenkins-Plugin/tree/gitee-1.1.3","project_id":3870899,"created_at":"2018-08-16T16:05:47+08:00","is_prerelease":true,"description":"新增特性:为 WebHook 数据生成 Jenkins 环境变量。可使 Jenkins在构建过程中使用 WebHook的数据。例如 PR 触发的 WebHook 会携带 PR iid (PR在项目中的编号),那么 Jenkins 构建过程中可以使用环境变量 giteePullRequestIid 来引用该变量。\r\n\r\n目前支持的环境变量见以下函数,其中不同的 WebHook 触发可能导致有些变量为空,具体请安装插件 EnvInject Plugin,于构建中查看 Environment Variables\r\n\r\n```java\r\n public Map\u003CString, String\u003E getBuildVariables() {\r\n MapWrapper\u003CString, String\u003E variables = new MapWrapper\u003C\u003E(new HashMap\u003CString, String\u003E());\r\n variables.put(\"giteeBranch\", branch);\r\n variables.put(\"giteeSourceBranch\", sourceBranch);\r\n variables.put(\"giteeActionType\", actionType.name());\r\n variables.put(\"giteeUserName\", userName);\r\n variables.put(\"giteeUserEmail\", userEmail);\r\n variables.put(\"giteeSourceRepoHomepage\", sourceRepoHomepage);\r\n variables.put(\"giteeSourceRepoName\", sourceRepoName);\r\n variables.put(\"giteeSourceNamespace\", sourceNamespace);\r\n variables.put(\"giteeSourceRepoURL\", sourceRepoUrl);\r\n variables.put(\"giteeSourceRepoSshUrl\", sourceRepoSshUrl);\r\n variables.put(\"giteeSourceRepoHttpUrl\", sourceRepoHttpUrl);\r\n variables.put(\"giteePullRequestTitle\", pullRequestTitle);\r\n variables.put(\"giteePullRequestDescription\", pullRequestDescription);\r\n variables.put(\"giteePullRequestId\", pullRequestId == null ? \"\" : pullRequestId.toString());\r\n variables.put(\"giteePullRequestIid\", pullRequestIid == null ? \"\" : pullRequestIid.toString());\r\n variables.put(\"giteePullRequestTargetProjectId\", pullRequestTargetProjectId == null ? \"\" : pullRequestTargetProjectId.toString());\r\n variables.put(\"giteePullRequestLastCommit\", lastCommit);\r\n variables.put(\"giteePushCreated\", created ? \"true\" : \"false\");\r\n variables.put(\"giteePushDeleted\", deleted ? \"true\" : \"false\");\r\n variables.putIfNotNull(\"giteePullRequestState\", pullRequestState);\r\n variables.putIfNotNull(\"giteeMergedByUser\", mergedByUser);\r\n variables.putIfNotNull(\"giteePullRequestAssignee\", pullRequestAssignee);\r\n variables.put(\"giteeTargetBranch\", targetBranch);\r\n variables.put(\"giteeTargetRepoName\", targetRepoName);\r\n variables.put(\"giteeTargetNamespace\", targetNamespace);\r\n variables.put(\"giteeTargetRepoSshUrl\", targetRepoSshUrl);\r\n variables.put(\"giteeTargetRepoHttpUrl\", targetRepoHttpUrl);\r\n variables.put(\"giteeBefore\", before);\r\n variables.put(\"giteeAfter\", after);\r\n variables.put(\"ref\", ref);\r\n variables.put(\"beforeSha\", beforeSha);\r\n variables.put(\"isTag\", isTag);\r\n variables.put(\"sha\", sha);\r\n variables.put(\"status\", status);\r\n variables.put(\"stages\", stages);\r\n variables.put(\"createdAt\", createdAt);\r\n variables.put(\"finishedAt\", finishedAt);\r\n variables.put(\"duration\", buildDuration);\r\n variables.putIfNotNull(\"giteeTriggerPhrase\", triggerPhrase);\r\n return variables;\r\n }\r\n\r\n```\r\n","author":{"name":"Yashin","username":"yashin","path":"/yashin","avatar_url":"https://foruda.gitee.com/avatar/1676890385817125678/58426_yashin_1578915792.png!avatar30"},"attach_files":[{"download_url":"/oschina/Gitee-Jenkins-Plugin/attach_files/160484/download/gitee-1.1.3.hpi","name":"gitee-1.1.3.hpi","cli_download_url":"https://gitee.com/oschina/Gitee-Jenkins-Plugin/releases/download/gitee-1.1.3/gitee-1.1.3.hpi"}],"zip_download_url":"/oschina/Gitee-Jenkins-Plugin/releases/tag/gitee-1.1.3.zip","tar_download_url":"/oschina/Gitee-Jenkins-Plugin/releases/tag/gitee-1.1.3.tar.gz"}}}