{"action":"created","issue":{"url":"https://api.github.com/repos/jenkinsci/build-alias-setter-plugin/issues/1","labels_url":"https://api.github.com/repos/jenkinsci/build-alias-setter-plugin/issues/1/labels{/name}","comments_url":"https://api.github.com/repos/jenkinsci/build-alias-setter-plugin/issues/1/comments","events_url":"https://api.github.com/repos/jenkinsci/build-alias-setter-plugin/issues/1/events","html_url":"https://github.com/jenkinsci/build-alias-setter-plugin/pull/1","id":106589314,"number":1,"title":"Only set up an Alias with a newer BuildNumber, not blindly","user":{"login":"directhex","id":308992,"avatar_url":"https://avatars.githubusercontent.com/u/308992?v=3","gravatar_id":"","url":"https://api.github.com/users/directhex","html_url":"https://github.com/directhex","followers_url":"https://api.github.com/users/directhex/followers","following_url":"https://api.github.com/users/directhex/following{/other_user}","gists_url":"https://api.github.com/users/directhex/gists{/gist_id}","starred_url":"https://api.github.com/users/directhex/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/directhex/subscriptions","organizations_url":"https://api.github.com/users/directhex/orgs","repos_url":"https://api.github.com/users/directhex/repos","events_url":"https://api.github.com/users/directhex/events{/privacy}","received_events_url":"https://api.github.com/users/directhex/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":{"login":"olivergondza","id":206841,"avatar_url":"https://avatars.githubusercontent.com/u/206841?v=3","gravatar_id":"","url":"https://api.github.com/users/olivergondza","html_url":"https://github.com/olivergondza","followers_url":"https://api.github.com/users/olivergondza/followers","following_url":"https://api.github.com/users/olivergondza/following{/other_user}","gists_url":"https://api.github.com/users/olivergondza/gists{/gist_id}","starred_url":"https://api.github.com/users/olivergondza/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/olivergondza/subscriptions","organizations_url":"https://api.github.com/users/olivergondza/orgs","repos_url":"https://api.github.com/users/olivergondza/repos","events_url":"https://api.github.com/users/olivergondza/events{/privacy}","received_events_url":"https://api.github.com/users/olivergondza/received_events","type":"User","site_admin":false},"milestone":null,"comments":2,"created_at":"2015-09-15T16:04:46Z","updated_at":"2015-09-17T11:34:42Z","closed_at":null,"pull_request":{"url":"https://api.github.com/repos/jenkinsci/build-alias-setter-plugin/pulls/1","html_url":"https://github.com/jenkinsci/build-alias-setter-plugin/pull/1","diff_url":"https://github.com/jenkinsci/build-alias-setter-plugin/pull/1.diff","patch_url":"https://github.com/jenkinsci/build-alias-setter-plugin/pull/1.patch"},"body":"This means a newer build will always take precedence over an older build, if they share an alias, rather than the order being somewhat random based on the underlying map objects' storage order."},"comment":{"url":"https://api.github.com/repos/jenkinsci/build-alias-setter-plugin/issues/comments/141050133","html_url":"https://github.com/jenkinsci/build-alias-setter-plugin/pull/1#issuecomment-141050133","issue_url":"https://api.github.com/repos/jenkinsci/build-alias-setter-plugin/issues/1","id":141050133,"user":{"login":"directhex","id":308992,"avatar_url":"https://avatars.githubusercontent.com/u/308992?v=3","gravatar_id":"","url":"https://api.github.com/users/directhex","html_url":"https://github.com/directhex","followers_url":"https://api.github.com/users/directhex/followers","following_url":"https://api.github.com/users/directhex/following{/other_user}","gists_url":"https://api.github.com/users/directhex/gists{/gist_id}","starred_url":"https://api.github.com/users/directhex/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/directhex/subscriptions","organizations_url":"https://api.github.com/users/directhex/orgs","repos_url":"https://api.github.com/users/directhex/repos","events_url":"https://api.github.com/users/directhex/events{/privacy}","received_events_url":"https://api.github.com/users/directhex/received_events","type":"User","site_admin":false},"created_at":"2015-09-17T11:34:42Z","updated_at":"2015-09-17T11:34:42Z","body":"Check the ordering of permalink entries in a job's config.xml.\r\n\r\nWith out-of-order storage, it reads the list sequentially & acts sequentially.\r\n\r\nFor example, from  production system:\r\n\r\n```        <entry>\r\n          <int>2806</int>\r\n          <linked-hash-set>\r\n            <string>corlib-ENVIRONMENT not found</string>\r\n            <string>corlib-137</string>\r\n          </linked-hash-set>\r\n        </entry>\r\n        <entry>\r\n          <int>2807</int>\r\n          <linked-hash-set>\r\n            <string>corlib-ENVIRONMENT not found</string>\r\n            <string>corlib-137</string>\r\n          </linked-hash-set>\r\n        </entry>\r\n        <entry>\r\n          <int>2804</int>\r\n          <linked-hash-set>\r\n            <string>corlib-ENVIRONMENT not found</string>\r\n            <string>corlib-137</string>\r\n          </linked-hash-set>\r\n        </entry>\r\n```\r\n\r\nThe question of why the permalinks are saved out of order is a separate one, and could also be considered a bug - but fixing _that_ bug doesn't help if your links are already stored out of order, so it is necessary to fix the ordering in the link loading, even if you also fix it in the link saving."}}