Closed. This question needs debugging details. It is not currently accepting answers.
Edit the question to include desired behavior, a specific problem or error, and the shortest code necessary to reproduce the problem. This will help others answer the question.
Closed 4 years ago.
Improve this question
I want to use #Grab to include a yaml parsing library inside my Jenkinsfile. I add this line in my Jenkinsfile:
#Grab('org.yaml:snakeyaml:1.17')
https://bitbucket.org/asomov/snakeyaml
However, the Jenkins run can't recognize this and return an error.
You cannot use #Grab in pipelines at the moment. I doubt it will be added as a feature because Jenkins CPS needs source code to be able to perform CPS transformations, and #Grab uses binary dependencies. You can only use #Grab from trusted shared libraries. From the documentation:
It is possible to use third-party Java libraries, typically found in Maven Central, from trusted library code using the #Grab annotation. Refer to the Grape documentation for details, but simply put:
Related
Closed. This question needs to be more focused. It is not currently accepting answers.
Want to improve this question? Update the question so it focuses on one problem only by editing this post.
Closed 4 years ago.
Improve this question
We are planning to use artifactory for mainframe COBOL.
We are also planning to use bitbucket as SCM tool for mainframe COBOL.
Can you please guide us on how to go about?
Thanks,
Shnkr
If you want to use bit bucket (or any GIT based system), you will need to be able to compile and move compiled objects to target datasets. IBM has a new product called Dependency Based Build, which is designed to integrate with GIT and other open SCM systems. It is Groovy based, and can call the COBOL, PL/I and Assembler compilers. It integrates with IBM Developer for System z (which is IBM's eclipse based IDE for mainframe development). This tool also allows you to debug, unit test, and analyze code coverage of your source.
Here's a demo of DBB: https://www.youtube.com/watch?v=CsZDlKIDRXI
Also, using these for your toolchain, you will be able to store your compiled objects (load modules, listings, DBRM, etc) into Artifactory, but deployment can be a bear if you are just using open source tools. I would personally recommend Ubancode Deploy for z/OS deployment as it can handle complex deployment scenarios.
For B.B. it totally depends on your IDE. Look at IBM’s eclipse bases stuff.
I have no idea how or if your can reasonably store mainframe COBOL artifacts in Artifactory - have you looked at their docs?
JFrog Artifactory does not come with an out of the box support for COBOL binary packages.
You can take a look at Generic repositories, which allows storing any type of binary, as a possible solution. Using generic repositories will allow you to benefit from setting permissions, defining layouts and other Artifactory capabilities.
Closed. This question needs details or clarity. It is not currently accepting answers.
Want to improve this question? Add details and clarify the problem by editing this post.
Closed 9 years ago.
Improve this question
EDIT:
NO LONGER RELEVANT. Due to difficulties with Installshield including not only this issue but also issues with getting it to build with the project in Visual Studio and its inability to replace one of the old files that needs to be replaced I am now coding an installer in C#. I should have done this earlier because I'd be done by now. Thank you Christopher Painter and Michael Urman for trying to guide me though this issue. Unfortunately I did not get anywhere further with it.
ORIGINAL POST BELOW
Honestly, this has been like pulling teeth. I hope that I'm missing something blatantly obvious. I have been trying to get Installshield to let me set the INSTALLDIR to an environmental variable. This is necessary because of the way the company does things. I know I can set it outside of the installer via a batch file which calls the MSI and passes the folder via an argument, but that solution ended up with an unfriendly MSI. If anyone has any internal solutions please let me know.
Windows Installer has the Environment table that is exposed by InstallShield in the environment view and component | advanced settings | environment view.
Setting Environment Variables
Windows Installer allows you to refer to environment variables using a variant of property notation. I would suggest an approach similar to RobertDickau's, where you use a set-property custom action early to set INSTALLDIR from [%SOMEVAR]. Only run the custom action if INSTALLDIR isn't already defined, so that people can override INSTALLDIR at the command line. Note that this must be run before costing, or you will have to find a different condition and use a set-directory action (like Robert mentions) instead.
Closed. This question does not meet Stack Overflow guidelines. It is not currently accepting answers.
We don’t allow questions seeking recommendations for books, tools, software libraries, and more. You can edit the question so it can be answered with facts and citations.
Closed 4 years ago.
Improve this question
Please let me know how Jelly is used in Jenkins.
Any docs explaining the architecture of GUI in Jenkins will be helpful.
Any tutorial explaining the high level code details or any pointers in the region
The starting point to Jenkins development is the Extend Jenkins page.
On this page, there is a number of sub pages that discuss different aspects of Jelly, see under "Writing Views (Jelly/Groovy)" in the menu.
This along with the tutorials at the bottom of the Plugin tutorial page is a good start.
Some basics:
All Jelly files are connected to a corresponding class based on the path of the Jelly file:
src/main/java/com/example/MyClass.java
src/main/resources/com/example/MyClass/config.jelly
There are a number of different names for different purposes on the jelly files, e.g.: portlet.jelly, index.jelly, global.jelly, config.jelly.
If you are writing a job/build plugin, global.jelly corresponds to system configuration while for job configuration you will use config.jelly.
Happy coding!
You will need maven and can install it from the command line
$ mvn -U org.jenkins-ci.tools:maven-hpi-plugin:create
This will ask you a few questions, like the groupId (the Maven jargon for the package name) and the artifactId (the Maven jargon for your project name), then create a skeleton plugin from which you can start with. Make sure you can build this:
$ cd newly-created-directory
$ mvn package
This is documented here https://wiki.jenkins-ci.org/display/JENKINS/Plugin+tutorial
This ships with lots of UI examples to look at. I would advise using either IntelliJ or eclipse as they have tools to integrate into the maven build process
Closed. This question does not meet Stack Overflow guidelines. It is not currently accepting answers.
We don’t allow questions seeking recommendations for books, tools, software libraries, and more. You can edit the question so it can be answered with facts and citations.
Closed 7 years ago.
Improve this question
I'm currently using Ant and Maven in different projects. To be compliant with some regulations, I'm in charge of listing all licenses used in each project.
With Maven, it is easy, as the Maven Project Info Reports Plugin generates such a report automatically.
As I'm not fond of searching licenses for all my JARs I'm using in the projects, I would like to know if there's a plugin for Ant, performing this task.
Thanks in advance!
Since this question hasn't got any hints, pointers or even answers, I hacked a solution by myself: license-report at github
The license-report is an Ant task which determines a license for most jar files. Currently, it searches in the following files for information:
META-INF/MANIFEST.MF
META-INF/LICENSE
LICENSE.txt
LICENSE
license/LICENSE.txt
license/LICENSE
These files are found in several common Open Source/Free Software libraries. Some libraries don't provide any information on their license (e.g. Spring framework).
For these libraries, the task does not find any information.
I will update the project as soon as possible that it prints out a nice xml and html report about the found licenses. Documentation and How To will follow, too.
I'm currently working on a demo project using this Ant task.
The demo project now creates an XML file with all library information. Just start it (with installed Ant) via ant build.xml in the root folder of license-report-demo. It prints out the location of the generated XML file. I will also include an XSLT to transform the XML into a nice HTML report. This will come in several days I think.
I create an XML file for further processing (e.g. CI systems like Hudson/Jenkins). This will help to generate a list of all licenses across projects in a central system.
Closed. This question does not meet Stack Overflow guidelines. It is not currently accepting answers.
We don’t allow questions seeking recommendations for books, tools, software libraries, and more. You can edit the question so it can be answered with facts and citations.
Closed 2 years ago.
Improve this question
I'm currently using a basic text editor to write my grails code. Does anyone know of a program that will automatically format code with indentation similar to indent does for C? I'd rather use a commandline program to do this but can use an IDE to format my code if that's the only option.
Try NetBeans v.6.7 (not the current production release 6.5) with the NetBeans Groovy/Grails plugin enabled. This is a nice clean IDE interface (easier to use than Eclipse IMHO), and you can set it up to integrate with your Grails installation. You can call all your Grails tasks from the IDE, edit your code, test and run your project. Then, if you want to format your code, you just right-click in the code editor and select "Format". Easy!
I am using VIM / GVIM for typing code in Groovy/Grails. it has code formatting, I just need to tell my VIM that groovy and java are similar....
and then press gg = G [enter] (format from top to bottom)
There is a tool recommended in this thread for this purpose. I have not tried it but maybe worth a look.
Here's some instructions on how to get Grails working with NetBeans (couldn't submit the second URL in my last post).
the groovy eclipse plugin does a decent job of formatting groovy code. sts might be smarter about some of the grails code.
You can use npm-groovy-lint for command line, and VsCode Groovy Lint in Visual Studio Code IDE :)
https://www.npmjs.com/package/npm-groovy-lint
https://marketplace.visualstudio.com/items?itemName=NicolasVuillamy.vscode-groovy-lint