java - Travis-CI cannot find gradle artifact -
i have defined gradle artifact want travis ci deploy. locally, artifact output build/libs/optionsanalysis-1.0.jar during gradle assemble.
please note travis.yml file created using travis codedeploy tool. since travis documentation devoid of information on lot of parameters here (such bundle_type, etc) can't sure have set correctly.
the problem travis cannot seem find built jar in order deployment. since cannot ssh travis instance see going on, , since cannot find documentation around standards around build should output, don't have way move forward this. has here ever configured travis autodeploy jar?
.travis.yml
language: java jdk: - oraclejdk8 deploy: - provider: s3 access_key_id: &3 secure: key secret_access_key: &1 secure: key local_dir: dpl_cd_upload skip_cleanup: true on: &2 repo: melchoir55/optionsanalysis branch: master bucket: elasticbeanstalk-us-west-2-302145366589 - provider: codedeploy access_key_id: *3 secret_access_key: *1 bucket: elasticbeanstalk-us-west-2-302145366589 key: optionsanalysis-1.0.jar bundle_type: jar application: optionsanalysis deployment_group: ota_group on: *2 before_deploy: - mkdir -p dpl_cd_upload - mv build/libs/optionsanalysis-1.0.jar dpl_cd_upload/optionsanalysis-1.0.jar build.gradle
group 'com.zowda.options' version '1.0' buildscript { repositories { mavencentral() } dependencies { classpath("org.springframework.boot:spring-boot-gradle-plugin:1.4.1.release") } } apply plugin: 'java' apply plugin: 'idea' apply plugin: 'spring-boot' sourcecompatibility = 1.8 targetcompatibility = 1.8 repositories { mavencentral() } dependencies { compile("org.springframework.boot:spring-boot-starter-web") compile("org.springframework.boot:spring-boot-starter-data-jpa") compile("mysql:mysql-connector-java") compile 'com.google.code.gson:gson:2.7' testcompile('org.springframework.boot:spring-boot-starter-test') testcompile group: 'junit', name: 'junit', version: '4.12' testcompile('com.h2database:h2') } jar { manifest { attributes( 'main-class': 'com.zowda.optionsanalysis.application', ) } } task fatjar(type: jar) { manifest.from jar.manifest classifier = 'all' { configurations.runtime.collect { it.isdirectory() ? : ziptree(it) } }{} jar } artifacts { archives fatjar } travis output
deploying application uploading "optionsanalysis-1.0.jar" {:content_type=>"application/java-archive"} s3 client configured "us-east-1" bucket "elasticbeanstalk-us-west-2-302145366589" in "us-west-2"; please configure proper region avoid multiple unnecessary redirects , signing attempts before_deploy.1 0.00s$ mkdir -p dpl_cd_upload 0.00s$ mv build/libs/optionsanalysis-1.0.jar dpl_cd_upload/optionsanalysis-1.0.jar mv: cannot stat `build/libs/optionsanalysis-1.0.jar': no such file or directory
Comments
Post a Comment