Skip to content

Angular 4 Assets not copying when creating build using Jenkins #11123

@ihd2911

Description

@ihd2911

Bug Report or Feature Request (mark with an x)

- [X ] bug report
- [ ] feature request

Versions

Windows 10
Node: 8.11.2
Angular cli in project: 1.7.3
Angular cli global: 6.0.3

Repro steps

I am creating build of angular 4 project using Jenkins and then publishing build on ftp.

Following is command that i am running

npm install && npm run dev

I have created dev as following in package.json.

"dev": "ng build"

When jenkins build run, build is created and uploaded on the ftp. All the content is uploaded on the ftp except the content which is in angular-cli.json assets

"assets": [
    "assets",
    "favicon.ico",
    ".htaccess"
  ],

Assets, favicon and htaccess files are not getting uploaded on the ftp.

I went on to check jenkins workspace folder for my project

C:\Program Files (x86)\Jenkins\workspace\projectname

and did not found assets in this folder.
Looking forward on help ASAP.

Thanks

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions