Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
17 changes: 17 additions & 0 deletions Jenkinsfile
Original file line number Diff line number Diff line change
@@ -0,0 +1,17 @@
node {
stage('Init') {
checkout scm
}

stage('Build') {
sh 'mvn clean package'
}

stage('Publish') {
azureFunctionAppPublish appName: env.FUNCTION_NAME,
azureCredentialsId: env.AZURE_CRED_ID,
filePath: '/var/lib/jenkins/workspace/myfunctionapp1/target/*.jar',
resourceGroup: env.RES_GROUP,
sourceDirectory: 'target/azure-functions/odd-or-even-function-sample'
}
}
7 changes: 7 additions & 0 deletions sample.java
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
my first 10 lines

my 2nd 10 lines

my 3rd 10 lines

my 4th 10 lines
2 changes: 2 additions & 0 deletions src/main/java/com/microsoft/azure/Function.java
Original file line number Diff line number Diff line change
Expand Up @@ -25,3 +25,5 @@ public HttpResponseMessage run(@HttpTrigger(name = "req", methods = { HttpMethod
}
}
}

my 2nd commit