Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[Jenkins-52906] add support for jcasc #168

Merged
merged 10 commits into from
Apr 13, 2019
Merged

[Jenkins-52906] add support for jcasc #168

merged 10 commits into from
Apr 13, 2019

Conversation

jetersen
Copy link
Member

@jetersen jetersen commented Oct 20, 2018

JENKINS-52906
jenkinsci/configuration-as-code-plugin#809

This is easier to shown in UI, we now support folder in folder lookup of Jira Site 🙌
image
Hmm wonder if it would be better to sort the list 😅

Nice jcasc doc:
image

image

Nice jcasc export:

plugins:
  sites:
  - id: "default"
    url: "http://updates.jenkins-ci.org/update-center.json"
jenkins:
  agentProtocols:
  - "CLI-connect"
  - "CLI2-connect"
  - "JNLP-connect"
  - "JNLP2-connect"
  - "JNLP4-connect"
  - "Ping"
  disableRememberMe: false
  mode: NORMAL
  numExecutors: 2
  primaryView:
    all:
      name: "all"
  quietPeriod: 5
  scmCheckoutRetryCount: 0
  slaveAgentPort: 0
  views:
  - all:
      name: "all"
unclassified:
  jiraglobalconfiguration:
    sites:
    - url: "https://issues.jenkins-ci.org/"
    - url: "https://backwardsCompatURL.com/"
tool:
  jdk:
    defaultProperties:
    - installSource:
        installers:
        - jdkInstaller:
            acceptLicense: false

@jetersen jetersen changed the title [Jenkins 52906] add support for jcasc [Jenkins-52906] add support for jcasc Oct 20, 2018
@coveralls
Copy link

coveralls commented Oct 20, 2018

Coverage Status

Coverage increased (+1.0%) to 55.913% when pulling e58465f on casz:JENKINS-52906 into 7813dd7 on jenkinsci:master.

@jetersen
Copy link
Member Author

Writing more tests to fix coverage 😅😤😇

@artkoshelev
Copy link
Member

I can't put my review comments for some reason, got that error

Unchecked runtime.lastError while running storage.set: QUOTA_BYTES_PER_ITEM quota exceeded

@jetersen
Copy link
Member Author

@artkoshelev github had a datastore issue: https://status.github.com
Could you cleanup your test comments 😅
I'll look into review

@artkoshelev
Copy link
Member

yeah, took me a while to figure out it's on github side not mine =)

.mvn/extensions.xml Outdated Show resolved Hide resolved
.mvn/maven.config Outdated Show resolved Hide resolved
.travis.yml Outdated Show resolved Hide resolved
pom.xml Outdated Show resolved Hide resolved
pom.xml Outdated Show resolved Hide resolved
src/main/java/hudson/plugins/jira/JiraFolderProperty.java Outdated Show resolved Hide resolved
@jetersen
Copy link
Member Author

jetersen commented Oct 28, 2018

This is where I can sit cry in a corner, rewriting tests to please reviewers 😅 No, I would rather rebase after merge of another PR and link to the commit view that pleases the reviewer.

@jetersen
Copy link
Member Author

This is the compare window your looking for: https://github.com/casz/jira-plugin/compare/simpleConstructor...casz:JENKINS-52906

@ewelinawilkosz
Copy link

great job with this fix, where do we stand though? were the comments addressed?

@jetersen
Copy link
Member Author

No, haven't had time and seems like the PRs are blocked by stats padding the coverage if the comments were to be addressed.

@kmcquade
Copy link

@Casz @ewelinawilkosz @olamy @artkoshelev - any updates? We really need this. Thanks

@timja
Copy link
Member

timja commented Mar 20, 2019

@kmcquade Parts of this PR have been extracted to others see the heading,
Currently the outstanding one is: #177
Once that's been merged this one probably needs a little cleanup, hopefully its not far off though

@jetersen
Copy link
Member Author

if #177 can get merged I will rework this PR 😄

@jetersen
Copy link
Member Author

Please take another look 😄

@jetersen
Copy link
Member Author

jetersen commented Mar 25, 2019

I will fix the compilation error later — followed @artkoshelev review comment to remove test in front of the name.

@jetersen
Copy link
Member Author

@olamy @artkoshelev I should have addressed all your concerns.

@jetersen
Copy link
Member Author

jetersen commented Apr 1, 2019

Conflict resolved

@jetersen
Copy link
Member Author

jetersen commented Apr 1, 2019

@olamy @artkoshelev what are the chances of this getting merged?

@artkoshelev
Copy link
Member

It looks good to me, but change is pretty big, did you performed any kind of manual/integration testing?

@jetersen
Copy link
Member Author

jetersen commented Apr 2, 2019

I don't actively use Jira. I am just here fixing the JCasC support plus some more while I was at it.

perhaps @kmcquade or @timja can 😅 You should able to grab the HPI here: https://repo.jenkins-ci.org/incrementals/org/jenkins-ci/plugins/jira/3.0.7-rc971.e58465f3b1cd/

I wouldn't agree with big changes, most of it is done in testing. Very little is changed in the actual code besides some Java 8 cleanup.

@jetersen
Copy link
Member Author

jetersen commented Apr 2, 2019

Removing all the test addition and import changes I am left with the significant change which are 152 additions and 99 deletions. So how big was this change?

@jetersen
Copy link
Member Author

jetersen commented Apr 2, 2019

I did do some testing. Tested that configuration would be transferred to the new JiraGlobalConfiguration and tested that nested folder sites would show up. Did you not see the screenshots in the PR description?
Besides that everything else should continue to work.

@olamy olamy self-requested a review April 2, 2019 06:09
@jetersen
Copy link
Member Author

@olamy Would be good to get this in :)

@olamy olamy merged commit a06acf0 into jenkinsci:master Apr 13, 2019
@jetersen jetersen deleted the JENKINS-52906 branch April 25, 2019 12:48
@jetersen
Copy link
Member Author

jetersen commented Apr 25, 2019

@olamy @artkoshelev users are asking for the jcasc support in our gitter channel

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

8 participants