Can’t find anywhere this has been answered, wondering if it has been done before or how I could go about this.
I have concourse installed as a cluster via this bosh release
I setup my windows worker using the windows worker operation from this repository
I have both a spring boot application and a library (compiled with maven).
My job task is setup as such (mostly because it was the only way I could get windows to work) :
- name: windows-unit-test plan: - aggregate: - get: Remediation trigger: true - get: java-for-windows - get: maven-for-windows - task: test config: platform: windows inputs: - name: Remediation - name: java-for-windows - name: maven-for-windows run: path: Remediation/ci/tasks/acceptanceTests.bat
and the resources/types I have are:
resource_types: - name: git-windows type: docker-image source: repository: cpwilliams/git-windows-concourse-resource tag: latest - name: file-url type: docker-image source: repository: pivotalservices/concourse-curl-resource tag: latest resources: - name: Remediation type: git source: branch: master private_key: ((remediation.github_private_key)) uri: ((remediation.github_uri)) ignore_paths: - number ## WINDOWS WORKER RESOURCES ### - name: java-for-windows type: file-url source: url: http://javadl.oracle.com/webapps/download/AutoDL?BundleId=235725_2787e4a523244c269598db4e85c51e0c filename: jre-8u191-windows-i586.exe - name: maven-for-windows type: file-url source: url: http://apache.mirrors.lucidnetworks.net/maven/maven-3/3.5.4/binaries/apache-maven-3.5.4-bin.zip filename: apache-maven-3.5.4-bin.zip
I doubt installing java and maven from a bat script is the right way to go about this and I’m looking for guidance as there is probably a better way to do this.
Is there a better way to have a windows worker with java 1.8 and maven setup so I don’t have to install them with every execution? I also have not successfully figured out how to install these things from a headless cmd prompt but that’s a different struggle.
Thanks in advanced for any pointers or suggestions.