Access to NodeProperties within unit test
Hi All, In external-workspace-manager plugin, there is a class ```ExternalWorkspaceProperty extends NodeProperty``` . I want to get reference to it . Is there something like ``` Jenkins j = new Jenkins(); ExternalWorkspaceProperty ewProperty = j.getNodeProperties().getXXXProperty(XXX.class); ``` class definition is : https://github.com/jenkinsci/external-workspace-manager-plugin/blob/master/src/main/java/org/jenkinsci/plugins/ewm/nodes/ExternalWorkspaceProperty.java and I know there is a GlobalNodePropertiesConfiguration in Jenkins core. Thanks ~ Yufei Zhang. -- You received this message because you are subscribed to the Google Groups "Jenkins Developers" group. To unsubscribe from this group and stop receiving emails from it, send an email to jenkinsci-dev+unsubscr...@googlegroups.com. To view this discussion on the web visit https://groups.google.com/d/msgid/jenkinsci-dev/c55af133-ffba-45f7-b6fb-55ae22bb65b2%40googlegroups.com. For more options, visit https://groups.google.com/d/optout.
[Project Change for GSoC 2019 Cloud Features for external workspace manager]
Hi developers in Jenkins, I'm Yufei Zhang, a student from GSoC 2019 responsible for 'Cloud Features for External Workspace Manager', here we made some important decision. According to the reasons in this blog post : https://github.com/imaffe/jenkins.io/blob/affe-coding-1-blog/content/blog/2019/06/2019-06-06-cloudfeature-gsoc-cp1.adoc , we decide to not move forward with our oringinal proposal. A brief explanation is that we found the previous project is not within the scope of Jenkins ecosystem, and we can put effort on other projects to provide the same feature to users. So, we will close down all the tasks related to the oringinal project, and start on JCasC compatiblity with multiple plugins. My lead mentor and me had experience with JCasC in external workspace manager, and Casc is a good feature that can work well with clouds (like other CasC tools including Ansible, Terraform and CloudFormation). The JCasC proposal is here : https://jenkins.io/projects/gsoc/2019/project-ideas/configuration-as-code-compatibility/ We will have a meeting on what plugins to work on in June 12th, 15:00 pm ~16:00pm , we need your opinions and feel free to join. Thanks so much. BR, Yufei Zhang. -- You received this message because you are subscribed to the Google Groups "Jenkins Developers" group. To unsubscribe from this group and stop receiving emails from it, send an email to jenkinsci-dev+unsubscr...@googlegroups.com. To view this discussion on the web visit https://groups.google.com/d/msgid/jenkinsci-dev/CAN%2BC-L0Wm2aV%3Dj7XqiiYHxNDkUdQ4bgXXmDgM8VxHnJmdgaqBA%40mail.gmail.com. For more options, visit https://groups.google.com/d/optout.
Re: Jenkins Common Coding Questions in GSoC 2019
Sorry I didn't make it clear, I want to fix this problem in my local environment, and this error has been up for a couple of times, I tried to figure out what is wrong but couldn't get a clue. I updated to 3.43 (latest) parent pom, and still couldn't find out which rule was broke. Not sure if it is because some dependency versions are too low. -- You received this message because you are subscribed to the Google Groups "Jenkins Developers" group. To unsubscribe from this group and stop receiving emails from it, send an email to jenkinsci-dev+unsubscr...@googlegroups.com. To view this discussion on the web visit https://groups.google.com/d/msgid/jenkinsci-dev/17f334a7-73cd-446d-ac11-1dd81f279beb%40googlegroups.com. For more options, visit https://groups.google.com/d/optout.
Re: Jenkins Common Coding Questions in GSoC 2019
Hi, this is the related PR : https://github.com/jenkinsci/external-workspace-manager-plugin/pull/62 The java version should be : [INFO] Maven Version: 3.6.0 [INFO] JDK Version: 1.8.0_212 normalized as: 1.8.0-212 [INFO] OS Info: Arch: amd64 Family: unix Name: linux Version: 4.15.0-50-generic When I delete the related pom entry for AWS java SDK, it will goes to the compile phase, but with the AWS Java pom entry, it fails at enforce. 在 2019年6月3日星期一 UTC-7下午10:09:45,Baptiste Mathus写道: > > Can you push a PR somewhere that shows the failure? > > Can you run with mvn -V compile and show the first lines (i.e. the JDK and > maven versions in use). > > Also I'd recommend bumping to the latest parent pom (3.43 to date) > > Le mar. 4 juin 2019 à 06:53, Yufei Zhang > > a écrit : > >> QUESTION 6 : This is a AWS Java SDK related problem and I think it has >>> something to do with the pom.xml >>> >> When I run *mvn compile*, it has error like this : >> >> Execution display-info of goal >> org.apache.maven.plugins:maven-enforcer-plugin:3.0.0-M1:enforce failed.: >> NullPointerException >> >> Part of my pom.xml look like this >> >> >> org.jenkins-ci.plugins >> plugin >> 3.18 >> >> >> external-workspace-manager >> 1.1.3-SNAPSHOT >> hpi >> >> >> 2.60.3 >> 8 >> >> -Xmx1024m >> >> >> >> >> and the AWS Java SDK property was copied from ec2-plugin pom.xml. >> it looks like >> >> >> org.jenkins-ci.plugins >> aws-java-sdk >> 1.11.457 >> >> >> >> And the pom.xml in ec2-plugin looks like >> >> >> org.jenkins-ci.plugins >> plugin >> 3.25 >> >> >> >> I tried upgrade my plugin version to 3.25, but didn't work, does anyone >> know what's the potential problem ? Thanks ! >> >> >> >> >> >> >> >> >> -- >> You received this message because you are subscribed to the Google Groups >> "Jenkins Developers" group. >> To unsubscribe from this group and stop receiving emails from it, send an >> email to jenkin...@googlegroups.com . >> To view this discussion on the web visit >> https://groups.google.com/d/msgid/jenkinsci-dev/2ab86fec-880c-4470-9604-e14d7df64e22%40googlegroups.com >> >> <https://groups.google.com/d/msgid/jenkinsci-dev/2ab86fec-880c-4470-9604-e14d7df64e22%40googlegroups.com?utm_medium=email_source=footer> >> . >> For more options, visit https://groups.google.com/d/optout. >> > -- You received this message because you are subscribed to the Google Groups "Jenkins Developers" group. To unsubscribe from this group and stop receiving emails from it, send an email to jenkinsci-dev+unsubscr...@googlegroups.com. To view this discussion on the web visit https://groups.google.com/d/msgid/jenkinsci-dev/bfc0a42c-dacf-49bb-91d9-9704d159de46%40googlegroups.com. For more options, visit https://groups.google.com/d/optout.
Re: Jenkins Common Coding Questions in GSoC 2019
> > QUESTION 6 : This is a AWS Java SDK related problem and I think it has > something to do with the pom.xml > When I run *mvn compile*, it has error like this : Execution display-info of goal org.apache.maven.plugins:maven-enforcer-plugin:3.0.0-M1:enforce failed.: NullPointerException Part of my pom.xml look like this org.jenkins-ci.plugins plugin 3.18 external-workspace-manager 1.1.3-SNAPSHOT hpi 2.60.3 8 -Xmx1024m and the AWS Java SDK property was copied from ec2-plugin pom.xml. it looks like org.jenkins-ci.plugins aws-java-sdk 1.11.457 And the pom.xml in ec2-plugin looks like org.jenkins-ci.plugins plugin 3.25 I tried upgrade my plugin version to 3.25, but didn't work, does anyone know what's the potential problem ? Thanks ! -- You received this message because you are subscribed to the Google Groups "Jenkins Developers" group. To unsubscribe from this group and stop receiving emails from it, send an email to jenkinsci-dev+unsubscr...@googlegroups.com. To view this discussion on the web visit https://groups.google.com/d/msgid/jenkinsci-dev/2ab86fec-880c-4470-9604-e14d7df64e22%40googlegroups.com. For more options, visit https://groups.google.com/d/optout.
Re: Jenkins Common Coding Questions in GSoC 2019
For Q4, we can use a Boolean fields, and the corresponding UI element can be checkbox or something. But now I have another similiar question Q5. about foldable configuration block , reference here : https://wiki.jenkins.io/display/JENKINS/Writing+a+foldable+section+controlled+by+a+checkbox. In an optional block, if user check the box, the hidden content would appear. But besides this, what should I do if I also want to set a certain boolean field in the object to be true, when the user check the box. Is there a certain tag attribute do such thing ? -- You received this message because you are subscribed to the Google Groups "Jenkins Developers" group. To unsubscribe from this group and stop receiving emails from it, send an email to jenkinsci-dev+unsubscr...@googlegroups.com. To view this discussion on the web visit https://groups.google.com/d/msgid/jenkinsci-dev/2b824061-8946-425d-b47e-2145cf1fe21d%40googlegroups.com. For more options, visit https://groups.google.com/d/optout.
Re: Jenkins Common Coding Questions in GSoC 2019
For Question 3 : See https://wiki.jenkins.io/display/JENKINS/Form+Validation 在 2019年5月29日星期三 UTC-7下午8:07:06,Yufei Zhang写道: > > I will post some more general questions, and see replies to check if it is > solved. > > > QUESTION 3 : In the form validation, what should we do if we want to > access other fields input ? > > > > QUESTION 4 : Are we restricted to use String and Describable fields only > if we want this fields to appear on web UI ? What if I want to use boolean > fields as a class member, and make it a form entry ? > -- You received this message because you are subscribed to the Google Groups "Jenkins Developers" group. To unsubscribe from this group and stop receiving emails from it, send an email to jenkinsci-dev+unsubscr...@googlegroups.com. To view this discussion on the web visit https://groups.google.com/d/msgid/jenkinsci-dev/25407b76-27b9-4d84-aee9-9e43301950ec%40googlegroups.com. For more options, visit https://groups.google.com/d/optout.
Re: Jenkins Common Coding Questions in GSoC 2019
I will post some more general questions, and see replies to check if it is solved. QUESTION 3 : In the form validation, what should we do if we want to access other fields input ? QUESTION 4 : Are we restricted to use String and Describable fields only if we want this fields to appear on web UI ? What if I want to use boolean fields as a class member, and make it a form entry ? -- You received this message because you are subscribed to the Google Groups "Jenkins Developers" group. To unsubscribe from this group and stop receiving emails from it, send an email to jenkinsci-dev+unsubscr...@googlegroups.com. To view this discussion on the web visit https://groups.google.com/d/msgid/jenkinsci-dev/a145cd0a-cbea-407f-9bc1-26e14163108f%40googlegroups.com. For more options, visit https://groups.google.com/d/optout.
Jenkins Common Coding Questions in GSoC 2019
Hi developers, GSoC mentors and students like me, I met some questions reading the codebase of external-workspace-manager-plugin, and they should appear in other jenkins plugins as well. So these are quite general and I wonder they might help students like me understand jenkins better. Hope someone can answer them and welcome to post your questions under this. The source code is : https://github.com/jenkinsci/external-workspace-manager-plugin supposing we are under working directory : external-workspace-manager-plugin/src/main/java/org/jenkinsci/plugins/ewm QUESTION 1 : in file ~/definitions/Disk.java The Disk class is a concrete class, but now I want to change it to a base class so I there can be more disk types with specific targets. What should I do to turn it into a base class properly ? for example : should I keep the @DataBoundConstructor annotations on the constructor ? Should I move the nested static descriptor class outside the origin class(since we declared a final attribute, which make it non-abstract) ? QUESTION 2 : in file ~/DiskInfoProviderDescriptor.java line 23 How to analyze this line : public DiskInfoProviderDescriptor(Class clazz) {super(clazz);} This is a more Java language problem. Why would we need derived class' metadata passed to the Descriptor (or when is this constructor called) ? Thanks ! Yufei Zhang -- You received this message because you are subscribed to the Google Groups "Jenkins Developers" group. To unsubscribe from this group and stop receiving emails from it, send an email to jenkinsci-dev+unsubscr...@googlegroups.com. To view this discussion on the web visit https://groups.google.com/d/msgid/jenkinsci-dev/8c78d8ff-7bbb-4e39-be8f-98b632fdbd4b%40googlegroups.com. For more options, visit https://groups.google.com/d/optout.