Coder Social home page Coder Social logo

ui5-nwabap-deployer's Introduction

My Github stats

ui5-nwabap-deployer's People

Contributors

benediktvolke avatar dependabot[bot] avatar ffleige avatar fjaoos avatar pfefferf avatar timia2109 avatar uxkjaer avatar vobu avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar

ui5-nwabap-deployer's Issues

Variable in the configuration file

How do I refer to an environment variable in the ui5.yaml file? I wanted to avoid hard coding of user credentials in the example configuration file provided below. The idea is to have the environment variables set for user/password and to refer to these environment variables in the configuration file. Appreciate any inputs. Thank you.

specVersion: '1.0'
metadata:
  name: ui5proj1
type: application
builder:
  customTasks:
  - name: ui5-task-nwabap-deployer
    afterTask: generateVersionInfo
    configuration: 
      resources:
        pattern: "**/*.*"
      connection:
        server: https://host:port
        client: 100
        useStrictSSL: false 
      authentication:
        user: xxx
        password: xxx

Please add the option to also deploy files from dependencies

See #16, https://openui5.slack.com/archives/C0A7QFN6B/p1590570444152800 and https://github.com/SAP/ui5-builder/issues/204#issuecomment-508032943 .

I would propose adding an option resourcesFromDependencies also with a glob pattern and then not only using workspace.byGlob(sResourcePattern) in https://github.com/pfefferf/ui5-nwabap-deployer/blob/master/packages/ui5-task-nwabap-deployer/lib/ui5-task-nwabap-deployer.js#L63 but also dependencies.byGlob(sResourceFromDependenciesPattern) if this option was provided.

Unknow Task ui5-task-nwabap-deployer

Hey,

I am receiving an error during build:

info builder:builder Building project ProjectName not including dependencies...
info builder:builder πŸ›   (1/1) Building project ProjectName
ERR! builder:builder Build failed in 3.93 ms
info builder:builder Executing cleanup tasks...

⚠️  Process Failed With Error

Error Message:
taskRepository: Unknown Task ui5-task-nwabap-deployer

Any tips? :)

Failing grunt build with new version

Hi,

firstly thanks for making that great CI tool!

Since last commit I get the "Connection configuration not (fully) specificed (check server and client)." error.
I'm using the grunt-nwabap-ui5uploader. Maybe I need to add something new to my grunt config?

	var config = {
		nwabap_ui5uploader: {
			options: {
				conn: {
					server: abapDevelopmentServerHost
				},
				auth: {
					user: abapDevelopmentUser,
					pwd: abapDevelopmentPassword
				}
			},
			// It uses a already created Transport and package, for deployment.
			upload_build: {
				options: {
					ui5: {
						package: abapPackage,
						bspcontainer: abapApplicationName,
						bspcontainer_text: abapApplicationDesc,
						transportno: abapTransportNumber,
						language: "DE",
						calc_appindex: true
					},
					resources: {
						cwd: targetDir,
						src: "**/*.*"
					}
				}
			}
		}
	};

Thanks for the help.

Best regards
Marco

No transport found attached to the user during upload in abap repository

Hi!
i'm trying to deploy ui5 app with grunt, using nwabap-ui5uploader.
I want to upload app in transport, attached curent user, but i got error in console:
error
I wanted to know why it might be ...
Could this be because I did not initially create this request, and only then I changed the owner of the request to myself? Although it would be logical for apap-uploader to pick up the request (since it works in sap webide fullstack)

Does the deployer support adaptation projects?

Hi,

i have a question: Does the deployser support the deployment of adaptation projects in the layered repository? Or is only the deployment of SAPUI5-Apps in a BSP application possible?

Thanks and Regards

Haunted

CICD pipeline does not fail

Hi,

Running the grunt deploy task does not fail the pipeline because it does not return exit code 1 on failure. To fix this, grunt.fail.fatal should be used.

It would be helpful if this could be added to the grunt deploy task.

Thanks in advance

Error in AdtClient.js library

Last update brought the following issues while executing:

info builder:builder Building project Z_CREATE_INC not including dependencies...
info builder:builder πŸ›    (1/1) Building project Z_CREATE_INC
info builder:builder application Z_CREATE_INC πŸ”¨ (1/9) Running task escapeNonAsciiCharacters...
info builder:builder application Z_CREATE_INC πŸ”¨ (2/9) Running task replaceCopyright...
info builder:builder application Z_CREATE_INC πŸ”¨ (3/9) Running task replaceVersion...
info builder:builder application Z_CREATE_INC πŸ”¨ (4/9) Running task generateFlexChangesBundle...
info builder:builder application Z_CREATE_INC πŸ”¨ (5/9) Running task generateComponentPreload...
info builder:builder application Z_CREATE_INC πŸ”¨ (6/9) Running task createDebugFiles...
info builder:builder application Z_CREATE_INC πŸ”¨ (7/9) Running task uglify...
info builder:builder application Z_CREATE_INC πŸ”¨ (8/9) Running task generateVersionInfo...
info builder:builder application Z_CREATE_INC πŸ”¨ (9/9) Running task ui5-task-nwabap-deployer...
(node:386) UnhandledPromiseRejectionWarning: TypeError: Cannot read property 'data' of undefined-task-nwabap-deployer...
    at AdtClient.sendRequest (/usr/node/home/node_modules/ui5-nwabap-deployer-core/lib/AdtClient.js:186:103)
    at processTicksAndRejections (internal/process/task_queues.js:97:5)
(node:386) UnhandledPromiseRejectionWarning: Unhandled promise rejection. This error originated either by throwing inside of an async function without a catch block, or by rejecting a promise which was not handled with .catch(). To terminate the node process on unhandled promise rejection, use the CLI flag `--unhandled-rejections=strict` (see https://nodejs.org/api/cli.html#cli_unhandled_rejections_mode). (rejection id: 44)
(node:386) [DEP0018] DeprecationWarning: Unhandled promise rejections are deprecated. In the future, promise rejections that are not handled will terminate the Node.js process with a non-zero exit code.

ui5 deploy task doesn't respect customQueryParams

ui5.yaml excerpt:

builder:
  customTasks:
  - name: upload0
    afterTask: generateVersionInfo
    configuration:
      resources:
        pattern: '**/*'
      connection:
        server: http://my.box:12345
        customQueryParams:
          spnego: disabled
        client: 99

hitting of the deploy task via ui5 build then produces an authentication error that upon further investigation shows that in
\ui5-nwabap-deployer-core\lib\AdtClient.js:98
the parameter oRequestOptions.url doesn't contain the custom query parameters.

Actual: http://my.box:12345/sap/bc/adt/filestore/ui5-bsp/objects/Z_BLA/content
Expected: http://my.box:12345/sap/bc/adt/filestore/ui5-bsp/objects/Z_BLA/content?spnego=disabled

Thanks in advance for taking a look!

Reset ICF-Cache after uploading of an ui5-app

Dear maintainers of this nice project,

I use it for deploying of my apps into an abap gateway.
I found out, that I have to reset the ICF-Cache after an update of an app. Otherwise the changes are not effective, because the
I do it now by calling /ui2/invalidate_client_caches on the gateway.
Ist it possible, that you toll can call this program optionally after the upload is finished?

Thank you!

JeMo

zip contains only files no folders

Dear Florian,

when building the zip before the deploy to ABAP with OData service currently only the files are added to the zip but not the folders:
https://github.com/pfefferf/ui5-nwabap-deployer/blob/master/packages/ui5-nwabap-deployer-core/lib/UI5ABAPRepoClient.js#L82
This causes issues in the deployment as the OData service tries to delete the missing folder but fails as there are still files in it. We just received a customer ticket about that.
Would be great if you could also add the folders to the zip and provide new version of ui5-task-nwabap-deployer.

Many thanks in advance and best regards
Matthias & Silke

deploy error: Request body larger than maxBodyLength limit

When deploying applications, sometimes the request fails with the below error message:
Request body larger than maxBodyLength limit

Fix: Add the below lines to AdtClient.js at line 105.

oAxiosReqOptions.maxBodyLength = Infinity;
oAxiosReqOptions.maxContentLength = Infinity;

Throw error when connection or credentials not specified

Hi Florian,
thanks for implementing this cool custom UI5 task. We use it in a CI/CD scenario and it would be cool if our deployment step would fail in following situations:

  • no connection specified
  • credentials missing

At the moment it's only logged to STDERR, but for the build task everything seems fine despite that the app is not successfully uploaded.

Best regards,
Marcel

How to skip files which are already there in SAP BSP Application

Hi Team,

I have an requirement where while uploading files via this module I want to skip files which are already there in SAP BSP Application.

For example i already have a file in SAP system webcontent/configuration.js

By using this module how can I skip this file while uploading I tried using negate option while providing src but it's trying to delete the file rather skipping

Not able to deploy the ui5 project to SAP ABAP server

Hi,

We are developing the ui5 project using yomen generator (easy ui5) and trying to deploy the app using npm run deploy but it did not deploy the app and gives the error "Error: Operation Existing Transport Determination for BSP Container: Expected status code 200, actual status code 403".

After investigation we came to know that issue is at the line no. 80:
fnCallback(new Error(Operation Existing Transport Determination: Expected status code ${fsutil.HTTPSTAT.ok}, actual status code ${oResponse.statusCode}));
it is not passing the credentials and coming back with mentioned error.

Please help us to resolve the issue.

Regards
Saket A

ui5-task-nwabap-deployer has problems with https://github.com/pwasem/ui5-shim-babel-polyfill

We have transpile for task and middleware in our ui5 build.
To also have the required babel runtime we use https://github.com/pwasem/ui5-shim-babel-polyfill exactly as described in the README there.
For ui5 serve this works, the two files added to the manifest are served and the app runs.
When using ui5 build --all the files from this babel runtime are in dist/resource, however they are NOT deployed by ui5-task-nwabap-deployer. Thus the deployed app does not find these two files and thus dooes not run.

Object is already locked

Hi,
Im getting following error for the first upload of new BSP app:

Object R3TR WAPA ABC_DEF is already locked in request M62K000060 of user DEVELOPER

configuration:

ui5: {
	package: "ABC_DEF_UI",
	bspcontainer: "ABC_DEF",
	bspcontainer_text: "ABC App",
	calc_appindex: true,
	create_transport: true,
	transport_use_locked: true,
	transport_text: "ABC UI"
}

Any idea what could be wrong?

Parse Error: Header overflow

Hi,

I have found a strange error when I try to deploy an application for the first time to a system.
This happens on a jenkins server running in AWS cloud. I cannot reproduce it on my local machine. If I hit replay on the jenkins build, it works just fine.
Version 2.1.0
This is the error:
image

This the full verbose log:

  • /home/ec2-user/workspace/UI5-Build-and-Deploy/node_modules/@ui5/cli/bin/ui5.js build --include-task=generateManifestBundle generateCachebusterInfo '--exclude-task=' --include-task=uploadCOS --verbose
    verb cli:middlewares:base using @ui5/cli version 2.14.1 (from /home/ec2-user/workspace/UI5-Build-and-Deploy/node_modules/@ui5/cli/bin/ui5.js)
    verb cli:middlewares:base using node version v12.22.1
    verb normalizer:normalizer Building dependency tree...
    verb normalizer:translators:npm Analyzing yyi00862bheft (/home/ec2-user/workspace/UI5-Build-and-Deploy) (dependency of nothing - root project)
    verb normalizer:translators:npm Ignoring npm dependency @ui5/cli. Not defined in UI5-dependency configuration.
    verb normalizer:translators:npm Ignoring npm dependency karma. Not defined in UI5-dependency configuration.
    verb normalizer:translators:npm Ignoring npm dependency karma-chrome-launcher. Not defined in UI5-dependency configuration.
    verb normalizer:translators:npm Ignoring npm dependency karma-mocha-reporter. Not defined in UI5-dependency configuration.
    verb normalizer:translators:npm Ignoring npm dependency karma-qunit. Not defined in UI5-dependency configuration.
    verb normalizer:translators:npm Ignoring npm dependency karma-sinon. Not defined in UI5-dependency configuration.
    verb normalizer:translators:npm Ignoring npm dependency karma-ui5. Not defined in UI5-dependency configuration.
    verb normalizer:translators:npm Ignoring npm dependency qunit. Not defined in UI5-dependency configuration.
    verb normalizer:translators:npm Ignoring npm dependency sinon. Not defined in UI5-dependency configuration.
    verb normalizer:translators:npm Analyzing ui5-task-nwabap-deployer (/home/ec2-user/workspace/UI5-Build-and-Deploy/node_modules/ui5-task-nwabap-deployer) (dependency of yyi00862bheft)
    verb normalizer:translators:npm Analyzing ui5-middleware-simpleproxy (/home/ec2-user/workspace/UI5-Build-and-Deploy/node_modules/ui5-middleware-simpleproxy) (dependency of yyi00862bheft)
    verb normalizer:translators:npm Ignoring npm dependency @ui5/logger. Not defined in UI5-dependency configuration.
    verb normalizer:translators:npm Ignoring npm dependency dotenv. Not defined in UI5-dependency configuration.
    verb normalizer:translators:npm Ignoring npm dependency express-http-proxy. Not defined in UI5-dependency configuration.
    verb normalizer:translators:npm Ignoring npm dependency minimatch. Not defined in UI5-dependency configuration.
    verb normalizer:translators:npm Analyzing ui5-nwabap-deployer-core (/home/ec2-user/workspace/UI5-Build-and-Deploy/node_modules/ui5-nwabap-deployer-core) (dependency of ui5-task-nwabap-deployer)
    verb normalizer:translators:npm Analyzing dotenv (/home/ec2-user/workspace/UI5-Build-and-Deploy/node_modules/ui5-task-nwabap-deployer/node_modules/dotenv) (dependency of ui5-task-nwabap-deployer)
    verb normalizer:translators:npm Analyzing @ui5/logger (/home/ec2-user/workspace/UI5-Build-and-Deploy/node_modules/@ui5/logger) (dependency of ui5-task-nwabap-deployer)
    verb normalizer:translators:npm Analyzing axios (/home/ec2-user/workspace/UI5-Build-and-Deploy/node_modules/axios) (dependency of ui5-nwabap-deployer-core)
    verb normalizer:translators:npm Analyzing retry-axios (/home/ec2-user/workspace/UI5-Build-and-Deploy/node_modules/retry-axios) (dependency of ui5-nwabap-deployer-core)
    verb normalizer:translators:npm Analyzing xmldoc (/home/ec2-user/workspace/UI5-Build-and-Deploy/node_modules/xmldoc) (dependency of ui5-nwabap-deployer-core)
    verb normalizer:translators:npm Analyzing yazl (/home/ec2-user/workspace/UI5-Build-and-Deploy/node_modules/yazl) (dependency of ui5-nwabap-deployer-core)
    verb normalizer:translators:npm Analyzing npmlog (/home/ec2-user/workspace/UI5-Build-and-Deploy/node_modules/npmlog) (dependency of @ui5/logger)
    verb normalizer:translators:npm Analyzing follow-redirects (/home/ec2-user/workspace/UI5-Build-and-Deploy/node_modules/follow-redirects) (dependency of axios)
    verb normalizer:translators:npm Analyzing sax (/home/ec2-user/workspace/UI5-Build-and-Deploy/node_modules/sax) (dependency of xmldoc)
    verb normalizer:translators:npm Analyzing buffer-crc32 (/home/ec2-user/workspace/UI5-Build-and-Deploy/node_modules/buffer-crc32) (dependency of yazl)
    verb normalizer:translators:npm Analyzing console-control-strings (/home/ec2-user/workspace/UI5-Build-and-Deploy/node_modules/console-control-strings) (dependency of npmlog)
    verb normalizer:translators:npm Analyzing gauge (/home/ec2-user/workspace/UI5-Build-and-Deploy/node_modules/gauge) (dependency of npmlog)
    verb normalizer:translators:npm Analyzing are-we-there-yet (/home/ec2-user/workspace/UI5-Build-and-Deploy/node_modules/are-we-there-yet) (dependency of npmlog)
    verb normalizer:translators:npm Analyzing set-blocking (/home/ec2-user/workspace/UI5-Build-and-Deploy/node_modules/set-blocking) (dependency of npmlog)
    verb normalizer:translators:npm Analyzing console-control-strings (/home/ec2-user/workspace/UI5-Build-and-Deploy/node_modules/console-control-strings) (dependency of gauge)
    verb normalizer:translators:npm Analyzing aproba (/home/ec2-user/workspace/UI5-Build-and-Deploy/node_modules/aproba) (dependency of gauge)
    verb normalizer:translators:npm Analyzing has-unicode (/home/ec2-user/workspace/UI5-Build-and-Deploy/node_modules/has-unicode) (dependency of gauge)
    verb normalizer:translators:npm Analyzing object-assign (/home/ec2-user/workspace/UI5-Build-and-Deploy/node_modules/object-assign) (dependency of gauge)
    verb normalizer:translators:npm Analyzing signal-exit (/home/ec2-user/workspace/UI5-Build-and-Deploy/node_modules/signal-exit) (dependency of gauge)
    verb normalizer:translators:npm Analyzing string-width (/home/ec2-user/workspace/UI5-Build-and-Deploy/node_modules/string-width) (dependency of gauge)
    verb normalizer:translators:npm Analyzing strip-ansi (/home/ec2-user/workspace/UI5-Build-and-Deploy/node_modules/strip-ansi) (dependency of gauge)
    verb normalizer:translators:npm Analyzing wide-align (/home/ec2-user/workspace/UI5-Build-and-Deploy/node_modules/wide-align) (dependency of gauge)
    verb normalizer:translators:npm Analyzing delegates (/home/ec2-user/workspace/UI5-Build-and-Deploy/node_modules/delegates) (dependency of are-we-there-yet)
    verb normalizer:translators:npm Analyzing readable-stream (/home/ec2-user/workspace/UI5-Build-and-Deploy/node_modules/readable-stream) (dependency of are-we-there-yet)
    verb normalizer:translators:npm Analyzing strip-ansi (/home/ec2-user/workspace/UI5-Build-and-Deploy/node_modules/strip-ansi) (dependency of string-width)
    verb normalizer:translators:npm Analyzing string-width (/home/ec2-user/workspace/UI5-Build-and-Deploy/node_modules/string-width) (dependency of wide-align)
    verb normalizer:translators:npm Analyzing code-point-at (/home/ec2-user/workspace/UI5-Build-and-Deploy/node_modules/code-point-at) (dependency of string-width)
    verb normalizer:translators:npm Analyzing is-fullwidth-code-point (/home/ec2-user/workspace/UI5-Build-and-Deploy/node_modules/is-fullwidth-code-point) (dependency of string-width)
    verb normalizer:translators:npm Analyzing ansi-regex (/home/ec2-user/workspace/UI5-Build-and-Deploy/node_modules/ansi-regex) (dependency of strip-ansi)
    verb normalizer:translators:npm Analyzing core-util-is (/home/ec2-user/workspace/UI5-Build-and-Deploy/node_modules/core-util-is) (dependency of readable-stream)
    verb normalizer:translators:npm Analyzing inherits (/home/ec2-user/workspace/UI5-Build-and-Deploy/node_modules/inherits) (dependency of readable-stream)
    verb normalizer:translators:npm Analyzing isarray (/home/ec2-user/workspace/UI5-Build-and-Deploy/node_modules/isarray) (dependency of readable-stream)
    verb normalizer:translators:npm Analyzing process-nextick-args (/home/ec2-user/workspace/UI5-Build-and-Deploy/node_modules/process-nextick-args) (dependency of readable-stream)
    verb normalizer:translators:npm Analyzing safe-buffer (/home/ec2-user/workspace/UI5-Build-and-Deploy/node_modules/safe-buffer) (dependency of readable-stream)
    verb normalizer:translators:npm Analyzing string_decoder (/home/ec2-user/workspace/UI5-Build-and-Deploy/node_modules/string_decoder) (dependency of readable-stream)
    verb normalizer:translators:npm Analyzing util-deprecate (/home/ec2-user/workspace/UI5-Build-and-Deploy/node_modules/util-deprecate) (dependency of readable-stream)
    verb normalizer:translators:npm Analyzing ansi-regex (/home/ec2-user/workspace/UI5-Build-and-Deploy/node_modules/ansi-regex) (dependency of strip-ansi)
    verb normalizer:translators:npm Analyzing code-point-at (/home/ec2-user/workspace/UI5-Build-and-Deploy/node_modules/code-point-at) (dependency of string-width)
    verb normalizer:translators:npm Analyzing is-fullwidth-code-point (/home/ec2-user/workspace/UI5-Build-and-Deploy/node_modules/is-fullwidth-code-point) (dependency of string-width)
    verb normalizer:translators:npm Analyzing strip-ansi (/home/ec2-user/workspace/UI5-Build-and-Deploy/node_modules/strip-ansi) (dependency of string-width)
    verb normalizer:translators:npm Analyzing safe-buffer (/home/ec2-user/workspace/UI5-Build-and-Deploy/node_modules/safe-buffer) (dependency of string_decoder)
    verb normalizer:translators:npm Analyzing number-is-nan (/home/ec2-user/workspace/UI5-Build-and-Deploy/node_modules/number-is-nan) (dependency of is-fullwidth-code-point)
    verb normalizer:translators:npm Analyzing number-is-nan (/home/ec2-user/workspace/UI5-Build-and-Deploy/node_modules/number-is-nan) (dependency of is-fullwidth-code-point)
    verb normalizer:translators:npm Analyzing ansi-regex (/home/ec2-user/workspace/UI5-Build-and-Deploy/node_modules/ansi-regex) (dependency of strip-ansi)
    verb normalizer:translators:npm [PERF] Consider defining UI5-dependencies in the package.json files of the relevant modules from the following list to improve npm translator execution time: ui5-task-nwabap-deployer, ui5-nwabap-deployer-core, dotenv, @ui5/logger, axios, retry-axios, xmldoc, yazl, npmlog, follow-redirects, sax, buffer-crc32, console-control-strings, gauge, are-we-there-yet, set-blocking, console-control-strings, aproba, has-unicode, object-assign, signal-exit, string-width, strip-ansi, wide-align, delegates, readable-stream, strip-ansi, string-width, code-point-at, is-fullwidth-code-point, ansi-regex, core-util-is, inherits, isarray, process-nextick-args, safe-buffer, string_decoder, util-deprecate, ansi-regex, code-point-at, is-fullwidth-code-point, strip-ansi, safe-buffer, number-is-nan, number-is-nan, ansi-regex
    verb normalizer:translators:npm Treetop:
    verb normalizer:translators:npm {
    verb normalizer:translators:npm id: 'yyi00862bheft',
    verb normalizer:translators:npm version: '0.0.1',
    verb normalizer:translators:npm path: '/home/ec2-user/workspace/UI5-Build-and-Deploy',
    verb normalizer:translators:npm dependencies: [
    verb normalizer:translators:npm {
    verb normalizer:translators:npm id: 'ui5-task-nwabap-deployer',
    verb normalizer:translators:npm version: '2.1.0',
    verb normalizer:translators:npm path: '/home/ec2-user/workspace/UI5-Build-and-Deploy/node_modules/ui5-task-nwabap-deployer',
    verb normalizer:translators:npm dependencies: [Array]
    verb normalizer:translators:npm },
    verb normalizer:translators:npm {
    verb normalizer:translators:npm id: 'ui5-middleware-simpleproxy',
    verb normalizer:translators:npm version: '0.7.5',
    verb normalizer:translators:npm path: '/home/ec2-user/workspace/UI5-Build-and-Deploy/node_modules/ui5-middleware-simpleproxy',
    verb normalizer:translators:npm dependencies: []
    verb normalizer:translators:npm }
    verb normalizer:translators:npm ]
    verb normalizer:translators:npm }
    verb normalizer:projectPreprocessor Processing project yyi00862bheft on level 0...
    verb normalizer:projectPreprocessor Processing dependency lookahead for yyi00862bheft: ui5-task-nwabap-deployer
    verb normalizer:projectPreprocessor Processing dependency lookahead for yyi00862bheft: ui5-middleware-simpleproxy
    verb normalizer:projectPreprocessor Applying extension ui5-task-nwabap-deployer...
    verb normalizer:projectPreprocessor Applying extension ui5-middleware-simpleproxy...
    verb normalizer:projectPreprocessor Applying extension uploadCOS...
    verb types:application:ApplicationFormatter Formatting application project yyi00862bheft...
    verb types:application:ApplicationFormatter Namespace of project yyi00862bheft is yyi00862_test_bheft (from manifest.json)
    verb normalizer:projectPreprocessor Processed 3 projects in 268 ms
    info builder:builder Building project yyi00862bheft not including dependencies...
    verb builder:builder Building to ./dist...
    info builder:builder πŸ›  (1/1) Building project yyi00862bheft
    verb resources:resourceFactory Prefixing virtual base path / of project yyi00862bheft /resources/yyi00862_test_bheft...
    verb resources:resourceFactory New virtual base path: /resources/yyi00862_test_bheft/
    info builder:builder application yyi00862bheft πŸ”¨ (1/3) Running task generateManifestBundle...
    verb resources:tracing:Trace:globs [Trace: /resources/yyi00862_test_bheft/**/{manifest.json,
    .properties}
    verb resources:tracing:Trace:globs 21 ms elapsed time
    verb resources:tracing:Trace:globs 1 glob executions
    verb resources:tracing:Trace:globs 2 reader-collections involed:
    verb resources:tracing:Trace:globs 1x source of yyi00862bheft
    verb resources:tracing:Trace:globs 1x yyi00862bheft
    verb resources:tracing:Trace:globs ======================]
    verb resources:adapters:Memory Writing to virtual path /resources/yyi00862_test_bheft/manifest-bundle.zip
    info builder:builder application yyi00862bheft πŸ”¨ (2/3) Running task uploadCOS...
    info builder:customtask:nwabap-deployer Start deploying UI5 sources.
    verb resources:tracing:Trace:globs [Trace: **/.
    verb resources:tracing:Trace:globs 8.66 ms elapsed time
    verb resources:tracing:Trace:globs 1 glob executions
    verb resources:tracing:Trace:globs 2 reader-collections involed:
    verb resources:tracing:Trace:globs 1x source of yyi00862bheft
    verb resources:tracing:Trace:globs 1x yyi00862bheft
    verb resources:tracing:Trace:globs ======================]
    verb resources:tracing:total ==========================
    verb resources:tracing:total [=> TRACE SUMMARY:
    verb resources:tracing:total 44 ms elapsed time
    verb resources:tracing:total 2 trace calls
    verb resources:tracing:total 2 glob executions
    verb resources:tracing:total 2 rl-collections involed:
    verb resources:tracing:total 2x source of yyi00862bheft
    verb resources:tracing:total 2x yyi00862bheft
    verb resources:tracing:total ======================]
    ERR! builder:customtask:nwabap-deployer Parse Error: Header overflow
    ERR! builder:builder Build failed in 14 s
    info builder:builder Executing cleanup tasks...

⚠️ Process Failed With Error

Error Message:
Parse Error: Header overflow

Stack Trace:
Error: Parse Error: Header overflow
at /home/ec2-user/workspace/UI5-Build-and-Deploy/node_modules/ui5-task-nwabap-deployer/lib/ui5-task-nwabap-deployer.js:126:19
at processTicksAndRejections (internal/process/task_queues.js:97:5)

If you think this is an issue of the UI5 Tooling, you might report it using the following URL: https://github.com/SAP/ui5-tooling/issues/new/choose
[Pipeline] echo
Fehler beim Test-Deploy des Tasks: uploadCOS

Best Regards
fjaoos

Select target client during deployment

This rather a question than an issue.
It will be great to have possibility to parameterize target sap client during deployment of the ui5 application. Basically this is done via url prefix ?sap-client= that is usually part of url.

"Connection error has occurred" - how to analyze further?!

Hi!

first: Great tool / npm-package that you created - I especially like the fast responses here in the issues πŸ‘

We want to use your "ui5-nwabap-deployer-cli" UI5 Deployer together with our CI/CD Pipeline in AWS.
We are running an AWS deployment agent on the OS of our Gateway development Systems.

When the Pipeline is successful, it triggers the deployment agent . Then, on the OS, this script is running:
image

Now to the "question":
We have two nearly identical development-systems.
On one of them it works flawless, on the other it doesn't:

  1. sandbox development system:
  • v1.x.x works with HTTP Gateway URL
  • v1.x.x works with HTTPS Gateway URL
  • v2.1.0 works with HTTPS Gateway URL
  1. development system:
  • HTTP is not enabled
  • v1.x.x does not work with HTTPS Gateway URL
  • v2.1.0 does not work with HTTPS Gateway URL

Both times, we get the same error after the ui5-deployer deploy command: "Connection error has occurred; retry attempt x":
image

We investigated and viewed a lot of logs but can not figure out the difference between both systems or what might be the difference on OS level.

Do you have any tip how we could proceed any further to circumscribe the cause for that and what needs to be changed in our setup?

Many thanks in advance!

This is our .ui5deployrc file:
image

Ressource unchanged after successful build and deploy

Hi,

I tried to deploy a change in one App, for testing purposes, from a jenkins server and from my local machine.
Although all checks are passed and a successfull build and deploy to the system, the ressources on that system remain unchanged, the app acts as before and no transport is created or updated.
We are using a certain user for the deployment though.
This is the ui5.yaml:
image
No error in st22 and the Transport is not updated either.
Here's the build log:
`PS C:\Git\gkvuipatestd> ui5 build
INFO: Using local @ui5/cli installation

info builder:builder Building project gkvuipatestd not including dependencies...
info builder:builder πŸ›  (1/1) Building project gkvuipatestd
info builder:builder application gkvuipatestd πŸ”¨ (1/9) Running task escapeNonAsciiCharacters...
info builder:builder application gkvuipatestd πŸ”¨ (2/9) Running task replaceCopyright...
info builder:builder application gkvuipatestd πŸ”¨ (3/9) Running task replaceVersion...
info builder:builder application gkvuipatestd πŸ”¨ (4/9) Running task generateFlexChangesBundle...
info builder:builder application gkvuipatestd πŸ”¨ (5/9) Running task generateComponentPreload...
info builder:builder application gkvuipatestd πŸ”¨ (6/9) Running task createDebugFiles...
info builder:builder application gkvuipatestd πŸ”¨ (7/9) Running task uglify...
info builder:builder application gkvuipatestd πŸ”¨ (8/9) Running task generateVersionInfo...
info builder:builder application gkvuipatestd πŸ”¨ (9/9) Running task upload0...
info builder:customtask:nwabap-deployer file /manifest-bundle.zip: deleted.9/9) Running task upload0...
info builder:customtask:nwabap-deployer file /sap-ui-cachebuster-info.json: deleted.ing task upload0...
info builder:customtask:nwabap-deployer file /resources/gkv/uipa00/gkvuipatestd/di.code-validation.core_issues.json: deleted.
info builder:customtask:nwabap-deployer file /resources/gkv/uipa00/gkvuipatestd/neo-app.json: deleted..
info builder:customtask:nwabap-deployer file /resources/gkv/uipa00/gkvuipatestd/resources.json: deleted.
info builder:customtask:nwabap-deployer folder /resources/gkv/uipa00/gkvuipatestd: deleted.k upload0...
info builder:customtask:nwabap-deployer folder /resources/gkv/uipa00: deleted.) Running task upload0...
info builder:customtask:nwabap-deployer folder /resources/gkv: deleted.πŸ”¨ (9/9) Running task upload0...
info builder:customtask:nwabap-deployer file /Component-dbg.js: no change detectednning task upload0...
info builder:customtask:nwabap-deployer file /Component-preload.js: updated./9) Running task upload0...
info builder:customtask:nwabap-deployer file /Component.js: no change detected) Running task upload0...
info builder:customtask:nwabap-deployer file /control/XmlInputTreeItem-dbg.js: no change detectedad0...
info builder:customtask:nwabap-deployer file /control/XmlInputTreeItem.js: no change detectedupload0...
info builder:customtask:nwabap-deployer file /controller/Main-dbg.controller.js: updated.ask upload0...
info builder:customtask:nwabap-deployer file /controller/Main.controller.js: updated.ng task upload0...
info builder:customtask:nwabap-deployer file /css/style.css: no change detected Running task upload0...
info builder:customtask:nwabap-deployer file /i18n/i18n.properties: no change detectedg task upload0...
info builder:customtask:nwabap-deployer file /index.html: no change detected/9) Running task upload0...
info builder:customtask:nwabap-deployer file /localService/YGKV_PAOO_C_SPRO_RDS_ANNO_MDL.xml: no change detected
info builder:customtask:nwabap-deployer file /localService/metadata.xml: no change detectedk upload0...
info builder:customtask:nwabap-deployer file /localService/mockdata/ProcessSet.json: no change detected
info builder:customtask:nwabap-deployer file /localService/mockserver-dbg.js: no change detectedoad0...
info builder:customtask:nwabap-deployer file /localService/mockserver.js: no change detected upload0...
info builder:customtask:nwabap-deployer file /manifest.json: no change detected Running task upload0...
info builder:customtask:nwabap-deployer file /model/models-dbg.js: no change detectedng task upload0...
info builder:customtask:nwabap-deployer file /model/models.js: no change detectedunning task upload0...
info builder:customtask:nwabap-deployer file /model/util/Converter-dbg.js: no change detectedupload0...
info builder:customtask:nwabap-deployer file /model/util/Converter.js: no change detectedask upload0...
info builder:customtask:nwabap-deployer file /model/util/Formatter-dbg.js: no change detectedupload0...
info builder:customtask:nwabap-deployer file /model/util/Formatter.js: no change detectedask upload0...
info builder:customtask:nwabap-deployer file /resources/sap-ui-version.json: updated.ng task upload0...
info builder:customtask:nwabap-deployer file /test/integration/navigationJourney-dbg.js: no change detected
info builder:customtask:nwabap-deployer file /test/integration/navigationJourney.js: no change detected
info builder:customtask:nwabap-deployer file /test/integration/opaTests.qunit.html: no change detected.
info builder:customtask:nwabap-deployer file /test/integration/pages/Main-dbg.js: no change detected...
info builder:customtask:nwabap-deployer file /test/integration/pages/Main.js: no change detectedoad0...
info builder:customtask:nwabap-deployer file /test/mockserver.html: no change detectedg task upload0...
info builder:customtask:nwabap-deployer file /test/unit/model/models-dbg.js: no change detectedload0...
info builder:customtask:nwabap-deployer file /test/unit/model/models.js: no change detectedk upload0...
info builder:customtask:nwabap-deployer file /test/unit/model/util/Converter-dbg.js: no change detected
info builder:customtask:nwabap-deployer file /test/unit/model/util/Converter.js: no change detected0...
info builder:customtask:nwabap-deployer file /test/unit/model/util/Formatter-dbg.js: no change detected
info builder:customtask:nwabap-deployer file /test/unit/model/util/Formatter.js: no change detected0...
info builder:customtask:nwabap-deployer file /test/unit/types/XmlType-dbg.js: no change detectedoad0...
info builder:customtask:nwabap-deployer file /test/unit/types/XmlType.js: no change detected upload0...
info builder:customtask:nwabap-deployer file /test/unit/unitTest.qunit.html: no change detectedload0...
info builder:customtask:nwabap-deployer file /types/XmlType-dbg.js: no change detectedg task upload0...
info builder:customtask:nwabap-deployer file /types/XmlType.js: no change detectednning task upload0...
info builder:customtask:nwabap-deployer file /view/ATDATable.fragment.xml: no change detectedupload0...
info builder:customtask:nwabap-deployer file /view/Add.fragment.xml: no change detected task upload0...
info builder:customtask:nwabap-deployer file /view/Main.view.xml: updated.(9/9) Running task upload0...
info builder:builder Build succeeded in 21 s
info builder:builder Executing cleanup tasks...`

No error for unlocked resources and invalid transport

Hi,

I am very sorry to bother you again but I expected the plugin to report an error, if the resources of the application have not been locked on a transport already while create_transport = false and transport_use_user_match= false.

if (!oOptionsAdapted.ui5.package.startsWith("$") && oOptionsAdapted.ui5.transportno === undefined && oOptionsAdapted.conn.testMode !== true) {

In my use case, the developer has to specify a certain transport from the system and the transports cannot be created by the plugin.

I think this might be because of "&& oOptionsAdapted.conn.testMode !== true". If this code would be added to the following if and elseif, my case would be working.

Thanks in advance
fjaoos

Support UI5 Tooling 3.0

As described in SAP/ui5-tooling#781 (comment),
for compatibility with UI5 Tooling 3.0, the custom task need to be adjusted:

implement the recommended callback to signal this to UI5 Tooling as outlined here. Alternatively, the task could also switch to specifying specVersion: 3.0

Without these adjustments, the UI5 Tooling v3 would build all the projects dependencies even if the custom task doesn't require access to them (What may take a lot of time).

Error: Converting circular structure to JSON

Hi,

I am trying to establish a CI pipeline with jenkins in AWS, WebIDE and Bitbucket.

Unfortunately the deployment process fails and I cannot determine the fault.
Here is my error text:
image

This is my ui5.yaml:
image

Regards
Nils

Upload fails, Connection is rejected

Hi Florian,

I was updating grunt-nwabap-ui5uploader from a rather old version (0.2.10).

With version 1.0.6 I get the following error:
"The requested URL could not be retrieved"
"https://..../sap/bc/adt/filestore/ui5-bsp/objects/ZRM_UI5_SAMPLE/content?
"

The last version that is working for me is 1.0.3.
It seems to be the AdtClient change.

Best regards,
RamΓ³n

Option useStrictSSL doesn't work as expected

In the new version of ui5-nwabap-deployer-core that uses axios, I can't deploy to a Gateway that has an invalid SSL certificate, even If I have the option useStrictSSL set to false. To deploy, now, I am using an old version of grunt-nwabap-ui5uploader.

I think that this can't be solved in a clean way because it's a bug of axios. axios/axios#535

Maybe axios can be replaced but I think that is not easy.

If I put process.env.NODE_TLS_REJECT_UNAUTHORIZED = '0'; in the code, it works. But I think that this is not the best way to go.

I have debugged the code and found that the following line line 130 AdtClient.js is not enough for invalid SSL certificates.

Empty transport requests created

Hi,

I have a BSP application locked on a open transport. When I specify createTransport:true and transportUseLocked:true what happens is that the application is deployed correctly on the existing transport however an empty new transport request is created each time. Is this the intended functionality? I hoped the new transport would only be created if a transport was not found with the BSP package. As I use this as part of a CI build pipeline, I'm ending up with a lot of empty transports being created.

Thanks
Sivajan

[ui5-task-nwabap-deployer] Don't use fixed Env-Variables as only option

There are several fixed/pre-defined environment variables that can be used if the value is not specified in YAML file.
I would suggest to also have a "special" value inside the YAML file, that points to a defined Environment Variable.
This special value should be the same, like it is used in @sap/ux-ui5-tooling: "env:MY_OWN_VAR".

I may create a PR if you accept this feature request.

[1.x branch] No error is thrown when transport is already released

In older versions there was an error stating something like this when trying to deploy under a transport that is already released:
"Request XYZ is already released."

It looks like the latest commit in the 1.x.x branch resolves this issue, but this is not yet available in the 1.0.7 branch on NPM:
https://www.npmjs.com/package/grunt-nwabap-ui5uploader?activeTab=versions

Unfortunately, our corporate firewall doesn't allow us to install directly from Github. Is it possible that the 1.x version on the NPM repository needs an update?

Thanks a ton!

Documentation: resource->path

Hi Florian,

I wanted do define path from where the source files would be collected and couldn't find it in the documentation(readme file). Then I saw path parameter under resource section in comments of the SCP blog.
Parameter "path" I saw on this image.
[ui5.yaml]
`builder:
customTasks:

  • name: ui5-task-nwabap-deployer
    afterTask: generateVersionInfo
    configuration:
    resources:
    path: dist
    pattern: "**/."`

My suggestion would be to add it to the readme file of this project.

Regards, Dalibor

GET parameters in server URL are not carried through as such for upload url

Given that I pass in a custom GET parameter as the server config option,
https://example.org/?spnego=disabled,
the GET parameter is treated as part of the host url, not as url parameter:
https://example.org/?spnego=disabled/sap/bc/adt/cts/transports

Valid (upload) scenarios for this are to bypass SAML2 and SPNEGO authentication (?saml2=disabled ?spnego=disabled)

I will provide a fix for this as a PR - just keeping track of the issue here πŸ˜„

ui5 serve doesn't work for ui5-task-nwabap-deployer

"devDependencies": { "ui5-task-nwabap-deployer": "*" }, "ui5": { "dependencies": [ "ui5-task-nwabap-deployer" ] }

If I remove this part from package.json and run npm install, after that ui5 serve works.

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    πŸ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. πŸ“ŠπŸ“ˆπŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❀️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.