Circleci Integration with java client code

I have written code in java for my project.In
1/ Ihave project in python for testing purpose of that project i executed some api which is written in Java.I want to trigger my java code after circle build happen for my project .
2/manually it is perfectly fine .We used circleci api .
Can i integrate with circleCi after each build?
my client code is on local machine…please help me out.
thanks

Yes. Pull your compiled Java files from a build repository, or compile them in-situ on the machine, and then run them in a step after your Python tests.

If you would like further help, please show us the config file you have now. Are you using Circle 1.0 or 2.0?

Thanks @halfer
we are working on sample project .this is config file of my project.for that project we written code in simple java without maven.can it be run on CircleCI after build.
If yes thn plz let me know the step for it…
version: 2
jobs:
build:
working_directory: ~/circleci-demo-python-django
docker:
- image: circleci/python:3.6.4
environment:
PIPENV_VENV_IN_PROJECT: true
DATABASE_URL: postgresql://root@localhost/circle_test?sslmode=disable
- image: circleci/postgres:9.6.2
environment:
POSTGRES_USER: root
POSTGRES_DB: circle_test
steps:
- checkout
- run: sudo chown -R circleci:circleci /usr/local/bin
- run: sudo chown -R circleci:circleci /usr/local/lib/python3.6/site-packages
- restore_cache:
key: deps9-{{ .Branch }}-{{ checksum “Pipfile.lock” }}
- run:
command: |
sudo pip install pipenv
pipenv install
- save_cache:
key: deps9-{{ .Branch }}-{{ checksum “Pipfile.lock” }}
paths:
- “.venv”
- “/usr/local/bin”
- “/usr/local/lib/python3.6/site-packages”
- run:
command: |
pipenv run “python manage.py test”
- store_test_results:
path: test-results
- store_artifacts:
path: test-results
destination: tr1

thank you for your response.

1 Like

Please add code formatting to that, so that readers can see the YAML indentation. This forum uses Markdown formatting, or you can click edit, select the config and click the code icon in the editor.

I don’t use Java or Maven myself, but nevertheless I am not sure your question is particular clear. Perhaps you can clarify that as well?

Sorry for inconvenience.snapshot of my config.yml.hope it will help you.

No, please fix the code formatting here. Images of code/config are not very useful.