Ant tasks for JIRA - ant

Is it possible to create JIRA issues using Ant tasks?
I'd like to automatically create JIRA issues using Ant.

Please check ant-jira. I never used it, looks like you can find some use and tell us how useful it is.

Use an Ant task to execute a shell command. Make the shell command the Atlassian CLI from Bob Swift.

Related

I'm using Workbench. what is Rest API Configuration?

I installed Workbench from jbpm-installer-full-7.1.0.Final.zip using ANT install.demo. Then i start it using ANT start.demo.
i import repository "https://github.com/kiegroup/jbpm-playground".
What is the configuration should i do to use rest api and start process?
i tried this but it faild "http://localhost:8080/kie-server/services/rest/server/containers/human-resources_1.0/processes/hiring/start". Thannks
you only need to build and deploy. you don't need to configure anything. once it is deployed.
check the documentation
{server}:{port}/kie-server/docs
so in your case,
localhost:8080/kie-server/docs

Set Jenkins build name only on successful build

I am trying to set the build name of a Jenkins build only on a successful build. Any failure, whether in building or testing, should use the 'default' (build number) instead.
I can't find any mention of this in the documentation or online. Is this possible?
It is pretty simple to do with Groovy Postbuild: https://wiki.jenkins-ci.org/display/JENKINS/Groovy+Postbuild+Plugin
You have some nice examples there too. So just check result and then set the:
manager.build.result
As they do in Example 3
In the post build operation you can run a "set of scripts" - there you can select any way to do so, set a description, run system groovy or groovy script to change the name or any other method of your choosing - you can add many build steps to help you do so. wrap it around a conditional statement and run it only when build is successful.
Good luck!

Is there a way to let gradle use a specific ant version?

I am working with a third party framework that I am integrating gradle into. I am calling some old ant tasks. The problem is that the third party framework wants me to use:
either its own ant, that is packaged with it
a specific ant version, in this case 1.9.1
Unfortunately there is no way to set the ant version that is used by gradle. I can not figure out if its is possible to point gradle to any specific version within my environment.
So what do you think I could do?
Thanks in advance,
Denis.
If you need to use a different Ant version than the one that comes with Gradle, you'll have to call out to Ant via a JavaExec or Exec task, rather than using Gradle's built-in Ant support.

How to setup Bamboo to work with codeception?

I have been trying to get Bamboo working with codeception tests. I am using codeception to test my code in a symfony project.
After some research I found an article on how to setup Jenkins with codeception.
Once read I figured out that I should use Ant to run the codeception commands that run the tests.
The problem is I don't really know where to put everything. This article explains all the fields for a new Ant task but nothing seem to work.
Can someone please help me?
In case anyone else comes across this, this is how I have gotten codeception working in bamboo.
In Admin > Server Capabilities. Add a new executable for Codeception with the path /usr/local/bin/codecept.
In your job, create a new task of type Command. Set the executable as Codeception. The arguments should be run --xml (and any others you need).
Next, create another task with the type of JUnit Parser. Set the custom results directory to tests/_log/*.xml.
This works perfectly for me.
Additional: If you do not have admin rights to the server, set the command executable as PHP and add ./vendor/bin/codecept run --xml as the arguments.

ANT & MSBUILD - build process won't fail if errors

When running msbuild.exe with ANT's exec task, errors in the .net code do not result in the build process failing.
Why would this be?
I use Nant to run some MSBuild tasks. Every time I use the failonbuild attribute of that task, it fails for me. Looking at Apache's documentation for Ant, it would appear the same attribute is there as well. Are you using this attribute?
I arrived at a solution and used Exec's failonerror, works like a charm.
What do you let the msbuild task do ?
When I used NAnt previously, I used the task to build a VS.NET solution.
Right now, I'm not using NAnt anymore, I use msbuild instead. :)

Resources