How to fetch Source Configuration from AnthillPro programatically? - continuous-integration

I went through the REST API doc of AnthillPro but couldn't find anything useful on fetching source configuration for a workflow.
What I need exactly is the code repository(svn/git) for the workflow. In anthillPro, it can be seen/edited from Administration >> Folder >> Project >> Build >> SourceConfigurations

Have you installed the proper plugin ? Use this site to download what you need -
https://developer.ibm.com/urbancode/plugins/anthillpro/
I use AHP 5, so after installing the plugins you should do the followings:
Check to see if plugin installed and all the steps and details - you should see them in
System -> Server -> Plugins
Then you should create a new repository from:
System -> Project support -> Repositories
Then add steps to a job, that is assigned to the workflow you have, from:
Administration -> Job -> "Add step icon"
From the steps popup:
Repositories -> source -> GIT -> ALL THE AVAILABLE STEPS
Option 2 (never did that myself) -
Add a shell script/ batch as a step and write your own code to fetch you desired code
Enjoy,
Eli

Related

iOS project transfer from xcode11 to xcode14

I had project which is working all good in xcode11 but when i open and try to run the project xcode13 or xcode14 it gives be below error
Steps i did to solve it:
1) Clear the build
2) Delete Derived Data
3) Xcode13 -> File -> Workspace settings -> Change to New Build System instead of Legacy Build system (Legacy build system is depricated)
4) Build Phases -> Copy Bundle Resources -> check if there are duplicate files exist.
error build: Multiple commands produce '/Users/Username/Library/Developer/Xcode/DerivedData/Project-ekfgusdfwerwe wercemqfyjckxycw/Build/Products/Debug-iphonesimulator/projectTest.app/Model.cdm'
Please help me

Why does STS show compilation errors when I first create a skeleton Boot project?

I just downloaded and installed Spring Tool Suite 4 for Mac. It has the following version ...
Version: 4.6.2.RELEASE
Build Id: 202005250833
I created a brand new Spring Boot project by going to the File menu, selecting "New" and then "Spring Starter Project." I filled out the information on the next screen, and then selected Spring Boot 2.3.1. When I open up the resulting scaffolding, though, there are already compilation errors ...
When I go to my "Run" menu and select "Run As" -> "Spring Boot App," the following error appears
Error: Could not find or load main class com.burrobuie.cardmania.CardmaniaApplication
Is there something else that needs to be done so that there are no compilation errors in my project when it is first created? I feel like this is something that should be the default behavior.
In top of STS you see File Edit Navigate Search Project
Click on Project -> clean -> select your project -> check Build automatically
Click on Project -> clean -> select your project -> clean
Look for the pom file of your project
Right click on pom file -> maven -> update project.
Right click on pom file -> run as -> maven build -> goals: enter'clean install' -> run
In the console you should see build success.
your compilation errors will be all gone. Not all these steps are required to do every time it only when you see compilation error performing one or all the steps will resolve the issue.

README.md for MAVEN project in NetBeans

I want add README.md file for in will be visible and editable in NetBeans 8.2 in Maven Java project type, But when the file lies in th project root it still unvisible in the IDE...
Interestingly enough there is a plugin for it.
See at github or at netbeans portal
To install it go to Tools -> plugins -> Available Plugins and search for readme. Choose plugin called Display readme files in project view. You can change which files to show on the Tools -> options -> Miscellaneous->Display more files panel:
UPDATE 2022:
Currently, the old NetBeans portal unavailable because it was decommissioned. You can download plugin from here and install manually. To install it manually, download the file readmeinprojectview-1.6.0.nbm then go to Tools -> Plugins -> Donwloaded -> Add Plugins. Then select the plugin and click Install.
Because readme.md is not part of project code. It is a descriptor file for marking down specific lines and paragraphs to highlight project details and it is used to generate the html summary you see at the bottom of projects on pages like GitHub.
It will be visible in the Files tab.

“Maven Project” option is not showing in Jenkins under New Item section (latest version 2.60.1 for Windows)

Open Jenkins server, go to >> New Item
As i want to work with Maven Project but i cant find 'maven project' option available there.
►To add Maven Project in New Item Page,
just go to Manage Jenkins >> Manage Plugin,
click on Available Tab,
In the filter box enter "Maven plugin" and you will get search result as "Unleash Maven Plugin",
√ enable the check-box, click on "Download now and install after restart"
Below screenshot will help you more-
1) Go to Jenkins Dashboard ->Manage Jenkins ->Manage plugins ->Available ->Maven Integration ->Install
2) Go to Manage Jenkins->Global tool configuration->Maven -> Add Maven_home variable value (i.e. path of the maven file on your system)
3) Go to Jenkins Dashboard -> New Item -> Maven Project option will be available
Here is a latest updates as per Jenkins the Plugin name to installed is changed to "Maven Integration" highlighted below:
PFB

No archetypes currently available. The archetype list will refresh when the indexes finish updating

In Eclipse with m2eclipse installed, when I choose
File > New > Project... > Maven > Maven Project
with
Use default Workspace location
and
Catalog: Nexus Indexer
selected, the following error message is showing up:
No archetypes currently available. The archetype list will refresh when the indexes finish updating.
Why does this error occur?
I had same problem and it was solved by adding a remote catalog:
http://repo1.maven.org/maven2/archetype-catalog.xml
This solution i found at :
http://jira.talendforge.org/secure/attachment/36787/DeveloperGuide-Feedback.pdf
in this case you can use another solution, you need to configure a local ctalogue using eclipse :
1- suppose that you need to use mave catalogue : http://repo1.maven.org/maven2/archetype-catalog.xml
2- download from your web broser the file http://repo1.maven.org/maven2/archetype-catalog.xml and save it in ~/.m2/archetype-catalog.xml
3 now go to eclipse "Window-->Preferences-->maven-->Archetypes" then click the "Add Local catalogue" and set the ctalogue file to the ~/.m2/archetype-catalog.xml, save and exit
4- now go back to eclipse and try to create project using your new local catatlogue archetypes, it should work
Updated remote catalog link: https://repo1.maven.org/maven2/archetype-catalog.xml
Either copy the link and add a remote archetype or download the XML file and go for a local archetype option and follow #sofiene-zaghdoudi 's solution.

Resources