jlamande / aws-lambda-jenkins-agents Goto Github PK
View Code? Open in Web Editor NEWJenkins agents using AWS Lambda
License: MIT License
Jenkins agents using AWS Lambda
License: MIT License
The 1.30.0 version of SAM with Java11 does not appear to use the shade uber jar with all libs packaged.
Inspecting the .aws-sam build folder after sam build
shows just the base classes present.
ubuntu@ip-192-168-0-253:~/aws-lambda-jenkins-agents/.aws-sam/build/AgentGitBashNodeFunction$ ll
total 20
drwxr-xr-x 4 root root 4096 Sep 5 18:41 ./
drwxr-xr-x 4 root root 4096 Sep 5 18:41 ../
drwxr-xr-x 3 root root 4096 Sep 5 18:41 io/
drwxr-xr-x 2 root root 4096 Sep 5 18:41 lib/
-rw-r--r-- 1 root root 428 Sep 5 18:40 log4j2.xml
S3 bucket contains the same after sam deploy
This results in ClassNotFoundException when invoking the Lambda functions
Caused by: java.lang.ClassNotFoundException: hudson.remoting.jnlp.Main
My workaround was to manually zip and push the contents of the uber jar but maybe there is a way to fix this with pom changes?
aws lambda update-function-code --function-name my-function --zip-file fileb://my-function.zip
root@ip-192-168-0-253:/home/ubuntu/aws-lambda-jenkins-agents/.aws-sam/build/AgentGitBashFunction# sam --version
SAM CLI, version 1.30.0
root@ip-192-168-0-253:/home/ubuntu/aws-lambda-jenkins-agents/.aws-sam/build/AgentGitBashFunction# mvn --version
Apache Maven 3.6.3
Maven home: /usr/share/maven
Java version: 11.0.11, vendor: Ubuntu, runtime: /usr/lib/jvm/java-11-openjdk-amd64
Default locale: en, platform encoding: UTF-8
OS name: "linux", version: "5.11.0-1016-aws", arch: "amd64", family: "unix"`
Great project btw thank you for making this! ๐
A declarative, efficient, and flexible JavaScript library for building user interfaces.
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. ๐๐๐
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google โค๏ธ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.