0
votes

I have created a Jenkins Job which gets code from TFS and builds the EAR at jenkins default workspace (/opt/jenkins/lib/jobs/PROJECTNAME/workspace/dist).

After the EAR is built, I need to checkin this EAR to TFS, but I didn't see any option to checkin artifacts to TFS.

2

2 Answers

0
votes

If you are using TFS Plugin in Jenkins to get the code from TFS. It will create a workspace when get the code. Settings as following: enter image description here

And then, you can add an "Execute Windows batch command" build step to check in files to TFS after EAR build via TF Command. enter image description here

Now you'll get the files been checked in: enter image description here

In the command, I check in the folder generated by the build, you can also just add the items generated by the build.