You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Unable to download artifact(s): Artifact not found for name: java-app Please ensure that your artifact is not expired and the artifact was uploaded using a compatible version of toolkit/upload-artifact
#124764
Hey everyone, i've been stuck for a while now on this issue im having where when i want to deploy my java app to azure it doesnt recognise the artifact that i build in a previous workflow run. these are the build and deploy files:
name: Build JAR app - kobeodbCR-backend
on:
push:
branches:
- main
workflow_dispatch:
jobs:
build:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- name: Set up Java version
uses: actions/setup-java@v1
with:
java-version: "17"
- name: Build with Maven
run: mvn clean install
- name: Upload artifact for deployment job
uses: actions/upload-artifact@v4
with:
name: java-app
path: "${{ github.workspace }}/target/*.jar"
name: Deploy JAR app to Azure Web App - kobeodbCR-backend
on:
workflow_run:
workflows: ["Build JAR app - kobeodbCR-backend"]
types:
- completed
jobs:
deploy:
runs-on: ubuntu-latest
steps:
- name: Download artifact from build job
uses: actions/download-artifact@v4
with:
name: java-app
- name: Deploy to Azure Web App
id: deploy-to-webapp
uses: azure/webapps-deploy@v2
with:
app-name: "kobeodbCR-backend"
slot-name: "Production"
package: "*.jar"
publish-profile: ${{ ... }}
and this is the error im getting:
deploy
Unable to download artifact(s): Artifact not found for name: java-app Please ensure that your artifact is not expired and the artifact was uploaded using a compatible version of toolkit/upload-artifact. For more information, visit the GitHub Artifacts FAQ: https://github.com/actions/toolkit/blob/main/packages/artifact/docs/faq.md
does anyone have an idea on why this is happening?
the build workflow completes successfully, and the artifact is created, but the deploy workflow fails after give or take 10 seconds
ActionsBuild, test, and automate your deployment pipeline with world-class CI/CDQuestion
1 participant
Heading
Bold
Italic
Quote
Code
Link
Numbered list
Unordered list
Task list
Attach files
Mention
Reference
Menu
reacted with thumbs up emoji reacted with thumbs down emoji reacted with laugh emoji reacted with hooray emoji reacted with confused emoji reacted with heart emoji reacted with rocket emoji reacted with eyes emoji
-
Select Topic Area
Question
Body
Hey everyone, i've been stuck for a while now on this issue im having where when i want to deploy my java app to azure it doesnt recognise the artifact that i build in a previous workflow run. these are the build and deploy files:
and this is the error im getting:
does anyone have an idea on why this is happening?
the build workflow completes successfully, and the artifact is created, but the deploy workflow fails after give or take 10 seconds
Beta Was this translation helpful? Give feedback.
All reactions