I'm new to Devop's field. I wanted to run python script using bamboo server. Can anyone help me with the proper Documentation or any steps?
You have to be much more specific here:
Do you have Bamboo Project/Plan ready?
Do you want to run the script on a remote PC? If so, do you have a Bamboo Agent installed on the PC?
If you have all of the above ready, just create a Job in your Plan. Then create a Task of Builder/Script type. Simplest example of the Script Task would be as on the following screenshot:
bamboo task to run a python script
Related
I'm having a hard time figuring out the root cause why the build pipeline needs to be run at least two times getting the output I'm expecting.
We've a powershell script that I've developed which basically retrieves translations and checks the xml files if an update is needed. Now if I run this script locally on my machine or locally on the VM where the build agent is hosted it's running fine and it updates all translations but not when run via the build pipeline
For example having 50 translations to update:
run locally will update all 50 translations
run locally on the vm will update all 50 translations
running the script via azure build pipeline only 25 translations will be updated (and need a re-run)
I'm stuck as I can't debug the powershell script when executed by the build pipeline.
Has anyone an idea why the output of the powershell differs if run via an azure build pipeline vs. running it locally and locally on the vm? Any inputs are appreciated and don't hesitate to ask for further information if I'm missing something.
Thanks in advance!
I'm discovering Rundeck; is there a way to create and run a Terraform process from inside Rundeck?
Thanks in advance
Regards
You can call your Terraform scripts from the command step or the script step on your workflow in the same way you can call any program. Here you can see a complete example of Rundeck+Terraform integration (and about how to automate your deploys).
UPDATE: Also you can test (and collaborate) with this unofficial plugin.
I have groovy script which runs on jenkins script console. My objective here is to automate the process which should run everyday.
Could you guys help me in achieving this task?
There are different ways you can automate it, but you will need to install one of the below plugins:
https://wiki.jenkins-ci.org/display/JENKINS/Groovy+plugin
https://wiki.jenkins-ci.org/display/JENKINS/Groovy+Postbuild+Plugin
Scriptler plugin is another plugin.
Then,
- Create a Jenkins Job
- Add (system groovy build action or groovy post build action)
- Run and Test
I hope it helps.
Cheers
I want to run a groovy command in Jenkins.For which I have configured groovy through Install automatically.Then I created a free style project and selected Execute groovy script under the build section and then under it I have selected groovy command and have written a simple hello world line.But when I tried executing the job the job history shows pending-Waiting for next available executor and I am unable to build the job.Please help me in identifying the problem and do suggest solution.I am pretty new to Groovy.
You need have at least one executor to run your job.
Do you have any slaves? if yes, check if your slave is okej, otherwise, check if your jenkins have free executor.
I am currently trying to deploy a website in PHP to a Linux server using jenkins and then use the same job to run a set of selenium test cases using python on a windows server, I can do both of these things individually but can not find a way to do them both within the same job.
I have tried using the Execute shell setting and then Executing a windows shell but do not know how to tell the job that these are different servers or if this is the correct method.
Is there a reason why you want to do both in the same job?
If you want job B to run only after Job A was completed successfully, You could have job A trigger Job B by using 'Add post-build action' in Job A configuration.