Compare commits

...

2 Commits

Author SHA1 Message Date
046b85ec4a Updated packages.
Some checks failed
ydeng/props/pipeline/head There was a failure building this commit
2024-07-20 00:42:13 +00:00
79f7688980 Removed nested stages. 2024-07-20 00:42:06 +00:00
3 changed files with 4819 additions and 4040 deletions

68
Jenkinsfile vendored
View File

@ -15,46 +15,38 @@ pipeline {
sh 'npm install --prefix ./Props' sh 'npm install --prefix ./Props'
} }
} }
stage("Props.Shop") { stage("Test Props.Shop") {
stages { steps {
stage("Test") { sh returnStatus: true, script: 'conda run -n base dotnet test --logger xunit --no-restore Props.Shop/**/*.Tests.csproj'
steps { xunit([xUnitDotNet(excludesPattern: '', pattern: 'Props.Shop/*.Tests/TestResults/*.xml', stopProcessingIfError: true)])
sh returnStatus: true, script: 'conda run -n base dotnet test --logger xunit --no-restore Props.Shop/**/*.Tests.csproj'
xunit([xUnitDotNet(excludesPattern: '', pattern: 'Props.Shop/*.Tests/TestResults/*.xml', stopProcessingIfError: true)])
}
}
stage("Publish") {
steps {
sh '''#!/bin/bash
for file in Props.Shop/**/*.csproj
do
conda run -n base dotnet publish --configuration Release --output output/shop-modules $file
done
'''
fingerprint 'output/shop-modules/**/Props.Shop.*'
sh 'mkdir -p ./Props/shops/'
sh 'cp ./output/shop-modules/*.dll ./output/shop-modules/*.deps.json ./Props/shops/.'
}
}
} }
} }
stage("Props") { stage("Publish Props.Shop") {
stages { steps {
stage("Test") { sh '''#!/bin/bash
steps { for file in Props.Shop/**/*.csproj
sh returnStatus: true, script: 'conda run -n base dotnet test --logger xunit --no-restore Props.Tests/Props.Tests.csproj' do
xunit([xUnitDotNet(excludesPattern: '', pattern: 'Props.Tests/TestResults/*.xml', stopProcessingIfError: true)]) conda run -n base dotnet publish --configuration Release --output output/shop-modules $file
} done
} '''
stage("Publish") { fingerprint 'output/shop-modules/**/Props.Shop.*'
steps { sh 'mkdir -p ./Props/shops/'
sh 'conda run -n base dotnet publish --configuration Release --output output/props/props-linux-x64 --runtime linux-x64 --self-contained Props' sh 'cp ./output/shop-modules/*.dll ./output/shop-modules/*.deps.json ./Props/shops/.'
sh 'conda run -n base dotnet publish --configuration Release --output output/props/props-win-x64 --runtime win-x64 --self-contained Props' }
fingerprint 'output/props/**/Props*' }
tar file: "output/props-linux-x64.tar.gz", archive: true, compress: true, dir: "output/props/props-linux-x64" stage("Test Props") {
zip zipFile: "output/props-win-x64.zip", archive: true, dir: "output/props/props-win-x64" steps {
} sh returnStatus: true, script: 'conda run -n base dotnet test --logger xunit --no-restore Props.Tests/Props.Tests.csproj'
} xunit([xUnitDotNet(excludesPattern: '', pattern: 'Props.Tests/TestResults/*.xml', stopProcessingIfError: true)])
}
}
stage("Publish Props") {
steps {
sh 'conda run -n base dotnet publish --configuration Release --output output/props/props-linux-x64 --runtime linux-x64 --self-contained Props'
sh 'conda run -n base dotnet publish --configuration Release --output output/props/props-win-x64 --runtime win-x64 --self-contained Props'
fingerprint 'output/props/**/Props*'
tar file: "output/props-linux-x64.tar.gz", archive: true, compress: true, dir: "output/props/props-linux-x64"
zip zipFile: "output/props-win-x64.zip", archive: true, dir: "output/props/props-win-x64"
} }
} }
} }

8745
Props/package-lock.json generated

File diff suppressed because it is too large Load Diff

View File

@ -10,30 +10,30 @@
"author": "", "author": "",
"license": "ISC", "license": "ISC",
"devDependencies": { "devDependencies": {
"@babel/core": "^7.14.8", "@babel/core": "^7.24.9",
"@babel/eslint-parser": "^7.14.7", "@babel/eslint-parser": "^7.24.8",
"@babel/plugin-transform-runtime": "^7.14.5", "@babel/plugin-transform-runtime": "^7.24.7",
"@babel/preset-env": "^7.14.8", "@babel/preset-env": "^7.24.8",
"babel-loader": "^8.2.2", "babel-loader": "^9.1.3",
"copy-webpack-plugin": "^9.0.1", "copy-webpack-plugin": "^12.0.2",
"css-loader": "^6.2.0", "css-loader": "^7.1.2",
"eslint": "^7.31.0", "eslint": "^9.7.0",
"glob": "^7.1.7", "glob": "^11.0.0",
"sass": "^1.35.2", "sass": "^1.77.8",
"sass-loader": "^12.1.0", "sass-loader": "^14.2.1",
"style-loader": "^3.2.1", "style-loader": "^4.0.0",
"webpack": "^5.65.0", "webpack": "^5.93.0",
"webpack-cli": "^4.9.1", "webpack-cli": "^5.1.4",
"webpack-merge": "^5.8.0" "webpack-merge": "^6.0.1"
}, },
"dependencies": { "dependencies": {
"@babel/runtime": "^7.14.8", "@babel/runtime": "^7.24.8",
"alpinejs": "^3.2.2", "alpinejs": "^3.14.1",
"axios": "^0.21.1", "axios": "^1.7.2",
"bootstrap": "^5.0.2", "bootstrap": "^5.3.3",
"bootstrap-icons": "^1.5.0", "bootstrap-icons": "^1.11.3",
"just-clone": "^3.2.1", "just-clone": "^6.2.0",
"on-change": "^3.0.2", "on-change": "^5.0.1",
"simplebar": "^5.3.5" "simplebar": "^6.2.7"
} }
} }